Click to See Complete Forum and Search --> : Setting databaselocation at runtime?
Zonnix
Mar 31st, 2000, 09:52 PM
We are using Crystal Reports 6 and we want to set the databaselocation at runtime, since we don't know the (network-)path of the mdb-file. Or maybe we can refer to a Datacontrol.. Does anyone know how to do this?
ashwinsrinivasan
Mar 31st, 2000, 10:23 PM
u can change the db location at run time...
just set the databtase using the following line of code
cryrep.databases(0) = "\\unc\dblocation\access.mdb"
This used to work fine in CryRep 4.2. It should continue to work.
Hope this helps ...:)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.