I am using MSSql 2000 as my database and MSAccess 2000 as my interface (front end). This Access front end has many forms for data entry and displaying information. I am currently using an ADODB connection, a few dozen times I must say, to the SQL database. Each time I use the connection I set it up using Dim and Set, define the driver, open the connection, do my business and when I am done I close and clear the connection.
So here is the question: Is the "best way" to do this. Or, can I simply define and open the connection when Access opens, conduct all my business using the same connection many times just by changing the SQL statement, then close the connection as Access is shut down thereby saving all the openings, closings and VBA code ? What is the best practice and best for the SQL database
Thanks for any suggestions.
So here is the question: Is the "best way" to do this. Or, can I simply define and open the connection when Access opens, conduct all my business using the same connection many times just by changing the SQL statement, then close the connection as Access is shut down thereby saving all the openings, closings and VBA code ? What is the best practice and best for the SQL database
Thanks for any suggestions.