How do I use ADO on my current database but change the provider to Microsoft Jet so I can use bookmarks with dynamic cursors?
As stated here CurrentProject.Connection defaults to an ODBC provider. Debug.print CurrentProject.Connection gives me:
Microsoft.ACE.OLEDB.12.0
From what I understand the provider Microsoft.Jet.OLEDB.4.0 will allow bookmarks with all cursors. But how do I change that when getting the connection from CurrentProject? I tried changing the Provider in the string from the debug.print and then assigning the string to the con object's ConnectionString property, but then it says it can't recognize the file format. Not to mention I don't want to lock in a specific file name. Can't I change the properties of CurrentProject.Connection without needing to use a specific file name?
I'm really wondering how ADO is supposed to be better than DAO when it's so difficult to use.
As stated here CurrentProject.Connection defaults to an ODBC provider. Debug.print CurrentProject.Connection gives me:
Microsoft.ACE.OLEDB.12.0
From what I understand the provider Microsoft.Jet.OLEDB.4.0 will allow bookmarks with all cursors. But how do I change that when getting the connection from CurrentProject? I tried changing the Provider in the string from the debug.print and then assigning the string to the con object's ConnectionString property, but then it says it can't recognize the file format. Not to mention I don't want to lock in a specific file name. Can't I change the properties of CurrentProject.Connection without needing to use a specific file name?
I'm really wondering how ADO is supposed to be better than DAO when it's so difficult to use.