WannaKatana
New member
- Local time
- Today, 07:07
- Joined
- Oct 1, 2017
- Messages
- 11
This is such a simple basic thing I've done for decades yet now a problem? I'm sure it's something silly I'm missing. A search provides no answer for my situation.
Library reference is to Microsoft Office 16.0 Access database engine object library. I removed that and changed it to DAO 3.6 library. Both compiled. Both gave me the same error.
Thanks!
Joel
Library reference is to Microsoft Office 16.0 Access database engine object library. I removed that and changed it to DAO 3.6 library. Both compiled. Both gave me the same error.
Code:
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset(strSQL)
strElig = rs("Elig") -- This works!
Do Until rs.EOF -- error occurs here! Grrrr!
rs.movenext
loop
Thanks!
Joel
Last edited: