Hey guys,
I've got a database which I am linking into a form on VB6. The form has only an ADODB function and a Datagrid to display the records.
I currently have this working fine where I build the connection string and then specify where the database is located.
However I am wondering if there is anyway to set the connection string used as the database within the folder where the VB project is contained, using the
chdir (app.path) function perhaps?
Each time I run my program on another computer I have to reprogram the database path which is quite annoying, any ideas on how to solve this?
Many thanks,
Stephen
I've got a database which I am linking into a form on VB6. The form has only an ADODB function and a Datagrid to display the records.
I currently have this working fine where I build the connection string and then specify where the database is located.
However I am wondering if there is anyway to set the connection string used as the database within the folder where the VB project is contained, using the
chdir (app.path) function perhaps?
Each time I run my program on another computer I have to reprogram the database path which is quite annoying, any ideas on how to solve this?
Many thanks,
Stephen
Comment