Dim dbsObj As DAO.Database
Dim rstObj As DAO.Recordset
Set dbsObj = DAO.DBEngine.Workspaces(0).OpenDatabase("Update APShop.mdb")
sqlstr = "SELECT * FROM APScan WHERE Attempt > 1;"
Set rstObj = dbsObj.OpenRecordset(sqlstr, dbOpenSnapshot)
THE ERROR OCCURS ON THIS LAST LINE
|