944,218 Members | Top Members by Rank

Ad:
Sep 10th, 2007
0

How To Set Path In Visual Basic 6

Expand Post »
greetings!

When i First start my VB6 program with data report it works fine. The report displayed directly. but when i try to open other programs in other directory and then when i re-run my program in data report operation a msgbox appear "Please Enter MS Jet OLE DB Initialization Information"

Data Source
Username
Password
Provider String
Open mode.

It only occurs when i try to open other file in different directory. Everytime i open other file in other directory this message appear. Anybody can help me to fix this problem and how to set my original path so when i change directory and i return to my program maybe it will works fine again.

Thankyou in advance
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
locsin is offline Offline
47 posts
since Aug 2007
Sep 10th, 2007
0

Re: How To Set Path In Visual Basic 6

Put this in Data Environment Initialization
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Connection1.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\sample.mdb" & ";Persist security Info=False"
hope that would help...
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007
Aug 28th, 2010
0
Re: How To Set Path In Visual Basic 6
hi there, i have got this coding but its not executing...
Set db = OpenDatabase(App.Path & "\student"
my m.Access file is called student, but am getting a msg saying that it couldnt find the file student and gives the address where the file is..please help, i think there should be someting wrong in da coding...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
abdulho is offline Offline
1 posts
since Aug 2010
Aug 30th, 2010
0
Re: How To Set Path In Visual Basic 6
Don't forget the files extension... App.Path & "\student.mdb"


Also: To set the path, use ChDir (see help)


Good Luck
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009
Feb 9th, 2011
0
Re: How To Set Path In Visual Basic 6
My vb6 application opens the access data base with the vb6 database name property of the Data1 control. How can I change this to open with explicit coding in the vb coding so I can change the path in a single location?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zp18zp18 is offline Offline
4 posts
since Feb 2011
Feb 9th, 2011
1
Re: How To Set Path In Visual Basic 6
Please do not hijack others threads.

Please start your own thread for a new question.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Feb 10th, 2011
0
Re: How To Set Path In Visual Basic 6
@zp18, start a NEW and your OWN thread by clicking THIS link. You will not get any help from members by hijacking others threads.
Last edited by AndreRet; Feb 10th, 2011 at 6:31 am.
Reputation Points: 329
Solved Threads: 347
Senior Poster
AndreRet is offline Offline
3,700 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Subreport within a Subreport MS Access
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Random picture





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC