Rachael2211
Member
- Local time
- Today, 14:34
- Joined
- Oct 24, 2013
- Messages
- 33
Hi All and thanks in advance for taking a look!
Situation: split 2010 database loaded onto the server in our T drive. T drive stores our Tenants data so each tenant or client has a folder called for example RachData or JohnData etc. These folders contain only the clients backend. Also on the T drive we have a folder which stores the frontend (deployed as an accdr) which means when an update is done we have only to replace one file - Now, each time a client logs in through the remote desktop the accdr is copied to their 'My Documents' folder for that session. The session and client is determined by the logon username eg RachaelC @ RachData.BusCoName.com.au with the bit after the '@' determining their t drive tenant folder.
Problem: relinking frontend to backend
My initial thought has been to capture the 'RachData' part out of the logon username and relink each table via vba on startup with a hidden form. I can make this work when the front end and backend are both on the T drive as I can capture the frontend path and use for relinking but once the frontend is copied to MyDocs I need a way to capture the t drive and the correct client folder.
I've experimented with the environ command and can get 'RachaelC' from environ("username') and there are a whole host of commands for getting different info but am just unsure about how to get the 'RachData' part out of the username logon.
This may be a completely wrong way to go about it and would appreciate any input....thank you!
Cheers, Rach
Situation: split 2010 database loaded onto the server in our T drive. T drive stores our Tenants data so each tenant or client has a folder called for example RachData or JohnData etc. These folders contain only the clients backend. Also on the T drive we have a folder which stores the frontend (deployed as an accdr) which means when an update is done we have only to replace one file - Now, each time a client logs in through the remote desktop the accdr is copied to their 'My Documents' folder for that session. The session and client is determined by the logon username eg RachaelC @ RachData.BusCoName.com.au with the bit after the '@' determining their t drive tenant folder.
Problem: relinking frontend to backend
My initial thought has been to capture the 'RachData' part out of the logon username and relink each table via vba on startup with a hidden form. I can make this work when the front end and backend are both on the T drive as I can capture the frontend path and use for relinking but once the frontend is copied to MyDocs I need a way to capture the t drive and the correct client folder.
I've experimented with the environ command and can get 'RachaelC' from environ("username') and there are a whole host of commands for getting different info but am just unsure about how to get the 'RachData' part out of the username logon.
This may be a completely wrong way to go about it and would appreciate any input....thank you!
Cheers, Rach