|
-
Jul 1st, 2002, 11:38 AM
#1
Thread Starter
New Member
Database destination not found
My problem is this... i used these coding to do the connection on my pc but when my frenz used it... error msg keep on prompting tt they cannot detect the database... can any1 tell me wats wrong wif my coding?
------------------------------------------------------------------------------------
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
strConn = strConn & "C:\JWing\Die Master\Die Master\DieMaster.mdb"
myCon.ConnectionString = strConn
myCon.Open
------------------------------------------------------------------------------------
this set of coding wrk for my pc not my frenz !
-
Jul 1st, 2002, 12:13 PM
#2
New Member
database connectivity
hi ,
may be the file in which the database was created and the database version in the system does not match.
convert the database file to the correct version
OR
the file may be missing from it's locationm.pl. verify that.
hope this will work
bye
-
Jul 3rd, 2002, 11:22 PM
#3
Thread Starter
New Member
yea in my frenz com he cannt find the database as the program and database he did not put in the folder i specified on e connection. is there a codin whereby it will detect e database as lng as the database is place together wif the program in e same folder?b
-
Jul 4th, 2002, 02:44 PM
#4
If you're wanting to read a database that's in the same dir as the program, I think this should do it:
VB Code:
dbName = "DieMaster.mdb"
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
strConn = strConn & App.Path & "\" & dbName
Hope this helps.
Destined
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
|