I have a form with multiple subforms. The ADO connection is opened to populate the fields in the form and subforms and closed afterwards so it does not slow down the servers. In Access 2003, it works fine, but 2007 causes all the subforms to unload when the connection tries to close.
To close the connection, I use this code
connection.Close
Set connection = Nothing
When it runs connection.close it goes straight to form unload for the subforms. Then it tries to load the subforms after it unloads them. Then I get an error saying
Run-time error'-2147417848 (80010108)':
Method populatedata of object form_transactions failed.
If anyone has any idea, please let me know.
To close the connection, I use this code
connection.Close
Set connection = Nothing
When it runs connection.close it goes straight to form unload for the subforms. Then it tries to load the subforms after it unloads them. Then I get an error saying
Run-time error'-2147417848 (80010108)':
Method populatedata of object form_transactions failed.
If anyone has any idea, please let me know.