B
Brian
I just updated a DB from Access 2000 to 2003. It was a very basic conversion
and took two minutes, but afterward I got a type mismatch on the last line
below:
Dim strSQL as String
Dim rsInvoice As Recordset
strSQL = "SELECT InvoiceNumber from PetroInvoice WHERE Status = 'Ready'"
Set rsInvoice = CurrentDb.OpenRecordset(strSQL, dbOpenSnapshot)
I got it to work by explicitly dimensioning the Recordset as DAO.Recordset,
so I tried removing/adding the DAO 3.6 Objects reference, to no avail.
After a little more tinkering, I finally removed the reference to MS ActiveX
Objects 2.1 Library and replaced it with 2.5.
Why does the Recordset reference rely on the ActiveX library? Shouldn't that
object be in the DAO objects library?
and took two minutes, but afterward I got a type mismatch on the last line
below:
Dim strSQL as String
Dim rsInvoice As Recordset
strSQL = "SELECT InvoiceNumber from PetroInvoice WHERE Status = 'Ready'"
Set rsInvoice = CurrentDb.OpenRecordset(strSQL, dbOpenSnapshot)
I got it to work by explicitly dimensioning the Recordset as DAO.Recordset,
so I tried removing/adding the DAO 3.6 Objects reference, to no avail.
After a little more tinkering, I finally removed the reference to MS ActiveX
Objects 2.1 Library and replaced it with 2.5.
Why does the Recordset reference rely on the ActiveX library? Shouldn't that
object be in the DAO objects library?