
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