Until now I have been using DAO to manipulate data in an Access 2000 database with VB6. Had a few problems with Windows2000 installation so I decided I should move on to ADO.
My DAO base program used a Module (.BAS) to publically open the database connection and declare recordsets that were common in different forms that I used.
I am attempting to modify my existing program so tried to do a similar thing with ADO ie open connection in module and declare public recordsets. It appears that although I can declare the recordsets they are not publically available.
Have I missed something - Can someone please tell me how I publically declare connections and recordsets for ADO.
My DAO base program used a Module (.BAS) to publically open the database connection and declare recordsets that were common in different forms that I used.
I am attempting to modify my existing program so tried to do a similar thing with ADO ie open connection in module and declare public recordsets. It appears that although I can declare the recordsets they are not publically available.
Have I missed something - Can someone please tell me how I publically declare connections and recordsets for ADO.