marksmithy69
Programmer
I am just looking for some advice on the best way to alleviate a problem I am having with my database. I just started a new project at work which uses an existing MS Access database, which contains hard-coded references to a server, in a few of the modules. My job is to get rid of any hard coded references. This database exist in 3 different environments. There is the development environment, where all code changes are made, the test environment where the application is tested, and the production environment, which is what the client uses. In each of these environments, the hard-coded references are a little different, because the server names are different in each environment. My question is...what would be the best way to change the code, so that the code is identical across each environment? I want to be able to promote all code changes from dev, and not have to change the hard-coded paths each time I promote code, which is what is currently being done. Maybe using global variables? Any advice would be greatly appreciated. Thank you.
Mark
Mark