NiallWestland1974
Programmer
Hi All,
I'm trying to populate a recordset from a simple query, but I keep getting Type MisMatch (error 13) errors.. Anyone have any idea what the problem is, and how to solve it?
Dim dbs2 As Database
Set dbs2 = CurrentDb
Dim rst As Recordset
Dim qry As QueryDef
Set qdf = dbs2.QueryDefs("qryTest"
Set rst = qdf.OpenRecordset(dbOpenSnapshot)
If rst.BOF = True And rst.EOF = True Then
MsgBox "Nothing Found"
Else
rst.MoveLast
MsgBox "OrgID found: " & rst.Fields("OrgID"
End If
dbs2.Close
Thanks
I'm trying to populate a recordset from a simple query, but I keep getting Type MisMatch (error 13) errors.. Anyone have any idea what the problem is, and how to solve it?
Dim dbs2 As Database
Set dbs2 = CurrentDb
Dim rst As Recordset
Dim qry As QueryDef
Set qdf = dbs2.QueryDefs("qryTest"
Set rst = qdf.OpenRecordset(dbOpenSnapshot)
If rst.BOF = True And rst.EOF = True Then
MsgBox "Nothing Found"
Else
rst.MoveLast
MsgBox "OrgID found: " & rst.Fields("OrgID"
End If
dbs2.Close
Thanks