DAO type Mismatch

tripico

Registered User.
Local time
Today, 03:34
Joined
Oct 14, 2005
Messages
23
I have this in a module annd I keep getting a Type mismatch error on "set db = CurrentDB"

Would anyone know why?

Code:
Sub GetAllUM()
Dim db As DAO.Database
Dim rs As DAO.Recordset

set db = CurrentDB
Set rs = CurrentDb.OpenRecordset(strsql)
.
.
.
end sub
 
Why are you even bothering with using db because you aren't opening your recordset with it?
 

Users who are viewing this thread

Back
Top Bottom