PDA

Click to See Complete Forum and Search --> : Data Report


RAMESH_R
Jan 9th, 2000, 11:03 AM
I have Set the DataEnvironment1's connection object (Connection1) to use the Microsoft.Jet.OLEDB.3.51 OLE DB provider.

then i Browsed to the my.mdb database which is on the 'd:' drive on my machine, i tested the connection, and then saved it. its working fine.

now , suppose i want to install this software on a machine on where there is no 'd:' , how can i do this.

can i pass the .mdb file path to the environment at runtime.


------------------
NA

Clunietp
Jan 10th, 2000, 11:38 AM
you can put it on the C: drive (everyone has a c drive) or you can set the MDB location at load time by specifying:

data.recordsource = app.path & "\datafile.mdb"

you just have to make sure the database is in the same dir as the EXE