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:Database 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
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
[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
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.