|
-
Sep 19th, 2008, 12:20 AM
#1
Thread Starter
New Member
Error when run my app on vista (VB 6.0)
my program run well in windows xp sp1, sp2 but cannt run on vista ultimate
database cannt found
sintax :
If ConnXX.State = adStateOpen Then
ConnXX.Close
Set ConnXX = Nothing
End If
ConnXX.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyDrive\MyData.mdb;Mode=ReadWrite;Persist Security Info=False;Jet OLEDB atabase Password=MyPass"
On Error Resume Next
ConnXX.Open
can you suggest me, how to make it work on windows vista ultimate.
When i install my program on vista home basic edition, my program run well and can add new data on my database, but when i want to make a report (i use crystall report 8,5) my program become crash..and say error 339...CRVIEWER.dll...). How i fix it??
and when i export to microsoft word, my program run error to.
Set word1 = CreateObject("Word.Application")
Dim word1 As Word.Document
word1.Visible = False
word1.Documents.Open FileName:="C:\mydrive\myfile.doc, ConfirmConversions:=False, _
ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto
Set WordDoc1 = word1.ActiveDocument
can you help me, how to make it run well on windows vista??
thank for your help...
bace
-
Sep 19th, 2008, 01:25 AM
#2
Re: Error when run my app on vista (VB 6.0)
Are you running your app as Administrator? (Right click > Run as Administrator).
The location of your database may not be the correct location for how you intent to use it. If its for a single user then it should be located in the appdata folder under the users directory. If its to be accessed by multiple users then it should be stored in hte common data folder. Search the Microsoft site for "File Virtualization" and you will understand why.
As for the crystal reports issue, did you install by running the setup package as Administrator? did you deploy the CR dependancies?
Thread Moved
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 24th, 2008, 12:34 AM
#3
Thread Starter
New Member
[RESOLVED] Error when run my app on vista (VB 6.0)
Thank bro...my program already run well in all version of vista,
it's simple, i just put all my file on direktory ...\program files\...
thanks q
bace
-
Sep 24th, 2008, 05:37 PM
#4
Re: Error when run my app on vista (VB 6.0)
This is exactly the wrong place to put these files.
It only works if you always run elevated or turn off UAC - which is a Bad Thing, but up to you.
Frankly I'm tired of spam, much of which is emailed by zombied machines. UAC is meant to help prevent this, which means you are potentially impacting everyone when you turn off UAC.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|