I have a database using ADO recordsets and it works perfectly in ACCESS 2010. I then Make an mde file and it also works well in ACCESS 2010. I tnen copy the mde file to another computer using ACCESS 2010 Runtime and I get errors right away. I tracked it down to the ADO statements. I then changed from ADO to DAO recordsets and went through the same process and it then worked perfectly on the ACCESS runtime. Can anyone help??
This is the code I used:
Dim rst2 As New ADODB.Recordset
rst2.Open "Names", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
strPrinterName = rst2.Fields("CurrPrinter")
This is the code I used:
Dim rst2 As New ADODB.Recordset
rst2.Open "Names", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
strPrinterName = rst2.Fields("CurrPrinter")