I have an app with several forms. Each form has an OLE connection to the same MS Access DB. I currently have an oledbconnection, oledbdataadapter, and a dataset created on each form via toolbox.
I have a development and production version of the app and everytime I want to switch between the two, I have to go in and edit the connection of the oledbconnection object on each form, I would like to be able to change the connection string from one place to affect the entire app.
I know I can declare a public connection in a module etc.. and it would work, but when I do, and then go back to the oledbdataadapter created via toolbox, I cannot select the connection, I only get none or the existing oledbdataadapter that I created via toolbox. Is there a way to do this so I only have to change my connection string in the publicly declared variable?
I hope that made sense and thank you all for your help.
I have a development and production version of the app and everytime I want to switch between the two, I have to go in and edit the connection of the oledbconnection object on each form, I would like to be able to change the connection string from one place to affect the entire app.
I know I can declare a public connection in a module etc.. and it would work, but when I do, and then go back to the oledbdataadapter created via toolbox, I cannot select the connection, I only get none or the existing oledbdataadapter that I created via toolbox. Is there a way to do this so I only have to change my connection string in the publicly declared variable?
I hope that made sense and thank you all for your help.