I am using a devolepment db to text my application and I'm making .exe files as i make improvements to use the live db
Instead of changing the db name before creating an .EXE I would like to write a sub to detertmine if the file name is exe or not to use a live db if its exe or a development db if not an .exe file name. How do I do this? TIA
Main Topics
Browse All Topics





by: vettrangerPosted on 1999-10-10 at 21:59:58ID: 2115247
Forgive me if I'm missing something, but I usually do this by including a test version of the db in my development directory, and the live version of the db in the normal application directory.
Then just refer to the database with :
dbname$ = app.path & "\yourdata.mdb"
Now if you're running from your development directory, you'll pick up the development db, and when running from the production directory you'll pick up the live file.
It doesn't make any difference whether your testing in the IDE or running the production EXE.