J
JoeBo
Testing for the existence of a record in a table using a DAO recordset I am
able to successfully find true or false using the following criteria.
rcdc.FindFirst "[course] = '" & [Iname] & "' And [DelegateID] = " &
[AttendeeID]
If rcdc.NoMatch Then
MsgBox "none"
Else
MsgBox "found"
I could use this but felt that it would be neater to use a simple dlookup
with the same criteria.
x = DLookup("[course]", "[qrymtcourses]", "[course] = '" & [Iname] & "' And
[DelegateID] = " & [AttendeeID])
This returns a mismatch error. Anyone point out the error of my ways.
Any help appreciated.
able to successfully find true or false using the following criteria.
rcdc.FindFirst "[course] = '" & [Iname] & "' And [DelegateID] = " &
[AttendeeID]
If rcdc.NoMatch Then
MsgBox "none"
Else
MsgBox "found"
I could use this but felt that it would be neater to use a simple dlookup
with the same criteria.
x = DLookup("[course]", "[qrymtcourses]", "[course] = '" & [Iname] & "' And
[DelegateID] = " & [AttendeeID])
This returns a mismatch error. Anyone point out the error of my ways.
Any help appreciated.