Opening Database using code 
Author Message
 Opening Database using code

Hi,
I'm new to VB5 and have a problem, 'what's new?'
I'm trying to open a database and do some manipulation, it works OK
when I specify the database in the data control properties but when I
remove the location from the data control and try to use code to name
the database I get the error - directory for the file isn't a valid
path.

This is the code I'm using

Data1.DatabaseName = App.Path & "\CDTBASIS.dbf"

In one of the sample app's with a book I have this method is used
without a problem.  The only difference in my code is the database id
***.DBF not ***.MDB.

Any ideas???

Regards
Phil Grant



Sat, 21 Oct 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to open another database from within Access using code

2. Open different database file within Access using code

3. Help Using VB4.0 - Trying to open database using Dynaset in Dim Statment

4. Opening a new database from code

5. Opening a Database That Has a Password (Via Code) at Run Time

6. ???VB 5 CODE OPEN ACCESS DATABASE????

7. Open remote Access database in ASP code

8. How to open a password Access database from VB (code only)

9. Error code when opening an access database

10. sample code to open ado database

11. source code to open a Database with ADOCE

12. open procedure using code?

 

 
Powered by phpBB® Forum Software