I used to have code that looks like the following
After packaging the application up and installing on another machine I got a "3706 ADO could not find the specified provider" message.
The solution to this (according to microsoft knowledge base article Q197902) is to change the provider string to use version 4.0 of the Jet OLE DB provider.
So the only line I have changed is...
cnnConnection.Provider = "Microsoft.Jet.OLEDB.3.51"
to
cnnConnection.Provider = "Microsoft.Jet.OLEDB.4.0"
But now the application seems to be a lot, lot slower in returning the records.
Is there anything else I can tweak or is it a symptom of the new Jet OLEDB
Code:
cnnConnection.Provider = "Microsoft.Jet.OLEDB.3.51"
cnnConnection.Open gsDatabaseName
lsSQL = "SELECT * FROM BLAH WHERE [Keyfield] = '" & lsSelectedKey & "' "
rstRecSet.Open lsSQL, cnnConnection, adOpenDynamic, adLockReadOnly, adCmdText
The solution to this (according to microsoft knowledge base article Q197902) is to change the provider string to use version 4.0 of the Jet OLE DB provider.
So the only line I have changed is...
cnnConnection.Provider = "Microsoft.Jet.OLEDB.3.51"
to
cnnConnection.Provider = "Microsoft.Jet.OLEDB.4.0"
But now the application seems to be a lot, lot slower in returning the records.
Is there anything else I can tweak or is it a symptom of the new Jet OLEDB