NauticalGent
Ignore List Poster Boy
- Local time
- Today, 11:20
- Joined
- Apr 27, 2015
- Messages
- 6,747
Good Morning again, Access Ninjas!
Attached is the FE updater script I have plagiarized and modified for my purposes.
It works pretty well although I have seen better updaters. I have played with the idea of doing a paradigm shift but I have bigger fish to fry at the moment. That being said, I am in no way married to this code/paradigm and open to any "system" that will accomplish what this script does more efficiently.
The issue is this. The folder we use at my organization is mapped to the "Y" drive. It is a virtual drive and I can use whatever designation I want... That being said, it seems there is an internal "path" between my FE and BE that was established when I originally split the DB.
This has caused a minor problem; The folder that holds the FE and BE is about 3 levels deep from the root level. When I split the DB, I was only mapped to the root level. If the user maps their "Y" past the root level, the application cannot find the tables.
Not a big issue, I just simply disconnect the drive and re-map it and it works fine. However I was looking for something that would account for this and correct it.
I added the code that maps the "Y" drive and it works...until the user exits the application and goes back in. They get a script error telling them that the network drive is already in use (a good programmer would have thought of that!).
I have done some google searches to get the proper syntax to check to see the drive is already in use, disconnect it and then re-connect it and so on and so forth.
But I am not sure if this is the best thing to do and would like some feedback...
As always, thanks in advance!
Attached is the FE updater script I have plagiarized and modified for my purposes.
It works pretty well although I have seen better updaters. I have played with the idea of doing a paradigm shift but I have bigger fish to fry at the moment. That being said, I am in no way married to this code/paradigm and open to any "system" that will accomplish what this script does more efficiently.
The issue is this. The folder we use at my organization is mapped to the "Y" drive. It is a virtual drive and I can use whatever designation I want... That being said, it seems there is an internal "path" between my FE and BE that was established when I originally split the DB.
This has caused a minor problem; The folder that holds the FE and BE is about 3 levels deep from the root level. When I split the DB, I was only mapped to the root level. If the user maps their "Y" past the root level, the application cannot find the tables.
Not a big issue, I just simply disconnect the drive and re-map it and it works fine. However I was looking for something that would account for this and correct it.
I added the code that maps the "Y" drive and it works...until the user exits the application and goes back in. They get a script error telling them that the network drive is already in use (a good programmer would have thought of that!).
I have done some google searches to get the proper syntax to check to see the drive is already in use, disconnect it and then re-connect it and so on and so forth.
But I am not sure if this is the best thing to do and would like some feedback...
As always, thanks in advance!