I have an access 2003 program that connects to an SQL database. We have both a development server (for me) with a database, and a production server (to which I do not have access) for the users. The database layouts and stored procs mirror each other, but the data inside the tables is different (dev contains fake data, prod has real data).
I am having a problem with my data link. I have to develop and test within the development enviroment, so I have to change my connection string / data link to development (setting it in code overwrites the Data Link Properties window as well). But then access won't let me change it back to production, because I don't have access and it won't let me set the data link to a database I cannot access.
I was hoping to just leave the data link pointing to development and then change it to production in the first line of code, but that doesn't work; it checks the connection before any code is run, and the users crash. I have not been able to find a way to trap this codeless error, so have had to add an extra day to updates so I can send my adp to someone else to establish the connection, then they return it to me and I compile it back into an ade, then I send it back to them and they put an indicator in the database that a new program update is available.... tedious and inefficient, especially during the holiday season when my DBA isn't here to manage updates.
Any suggestions on how to force the connection string in, even though Microsoft considers it invalid? We are trying to get me a login with no permissions on the prod server so I can at least establish a connection, but our security people are dragging their feet about that. I'm stumped.
[blue]When birds fly in the correct formation, they need only exert half the effort. Even in nature, teamwork results in collective laziness.[/blue]
I am having a problem with my data link. I have to develop and test within the development enviroment, so I have to change my connection string / data link to development (setting it in code overwrites the Data Link Properties window as well). But then access won't let me change it back to production, because I don't have access and it won't let me set the data link to a database I cannot access.
I was hoping to just leave the data link pointing to development and then change it to production in the first line of code, but that doesn't work; it checks the connection before any code is run, and the users crash. I have not been able to find a way to trap this codeless error, so have had to add an extra day to updates so I can send my adp to someone else to establish the connection, then they return it to me and I compile it back into an ade, then I send it back to them and they put an indicator in the database that a new program update is available.... tedious and inefficient, especially during the holiday season when my DBA isn't here to manage updates.
Any suggestions on how to force the connection string in, even though Microsoft considers it invalid? We are trying to get me a login with no permissions on the prod server so I can at least establish a connection, but our security people are dragging their feet about that. I'm stumped.
[blue]When birds fly in the correct formation, they need only exert half the effort. Even in nature, teamwork results in collective laziness.[/blue]