B
Bruce M. Thompson
Dim dbCurrent As Database
I would guess that you are using Access 2000, or later, and that you have
references to both the DAO and ADO object libraries. While a Database object
exists only in the DAO library (as of yet), a recordset object exists in both
libraries, but are not the same. Try disambiguating your recordset object by
preceding the type with the source library:
Dim rsData As DAO.Recordset
Dim rsData As Recordset [...]
Set dbCurrent = CurrentDb
Set rsData = dbCurrent.OpenRecordset(strNewSQL) ' <--'''offending
code....
I would guess that you are using Access 2000, or later, and that you have
references to both the DAO and ADO object libraries. While a Database object
exists only in the DAO library (as of yet), a recordset object exists in both
libraries, but are not the same. Try disambiguating your recordset object by
preceding the type with the source library:
Dim rsData As DAO.Recordset