Anishtain4
Registered User.
- Local time
- Today, 00:32
- Joined
- Apr 13, 2011
- Messages
- 21
I use this method to connect to my data base:
and I splitted the database, but when I put that on the server it wanted to use tables on the address they were on my hard drive, then I relinked the front end to the back end again it was tring to use database on the address of the server like D:\blah blah
so I tried to import the tables from the back end and then split it again, that worked. but that is disgusting, how can I make it easier? for example assume that I update some forms and want to let other people let them use, what should I do?
how should I change the line currentdb to make it constant whenever I change the front end? and where should I declare a global variable so when I change the location of back end in one place and I get it all through my forms?
Code:
dim db as DAO.Database
Dim rst as DAO.RecordSet
......
set db=currentdb
set rst=db.openrecordset(SQL)
.....
and I splitted the database, but when I put that on the server it wanted to use tables on the address they were on my hard drive, then I relinked the front end to the back end again it was tring to use database on the address of the server like D:\blah blah
so I tried to import the tables from the back end and then split it again, that worked. but that is disgusting, how can I make it easier? for example assume that I update some forms and want to let other people let them use, what should I do?
how should I change the line currentdb to make it constant whenever I change the front end? and where should I declare a global variable so when I change the location of back end in one place and I get it all through my forms?