I am a fairly good VBA programmer, and am now making the jump to Visual Basic. Wanting to be as advanced as I can be, I want to learn ADO funcationality. I have read quite a bit about the flexibility and how to set connection strings. I have read in these forums that you should use the ADODC data object. I have also read others say to connect in each procedure as you need and access the connection. Alternatively, I have seen recommended to set the connection globally when you open your database.
The program I am working on is a lot of database work to control inventory. Therefore, I would be working a lot with SQL and updating/accessing database information. My preference would be to work in Access, but, alas, it is difficult to mass distribute an application as a .mde file in Access.
Does anyone want to comment on how the most efficient and best way is to establish the database connection? And what would be the best mindset to have as I progress forward. It does not make sense to me to open and close the connection with each procedure as I need it. However, I am open to any comments.
The program I am working on is a lot of database work to control inventory. Therefore, I would be working a lot with SQL and updating/accessing database information. My preference would be to work in Access, but, alas, it is difficult to mass distribute an application as a .mde file in Access.
Does anyone want to comment on how the most efficient and best way is to establish the database connection? And what would be the best mindset to have as I progress forward. It does not make sense to me to open and close the connection with each procedure as I need it. However, I am open to any comments.