wh00t
Registered User.
- Local time
- Today, 15:44
- Joined
- May 18, 2001
- Messages
- 264
I am working on creating a holiday booking database, and am currently trying to get the form to look and see if a person has booked a certain day already. I am using findfirst but it's not going quite how I wanted.
this is the part of the code I'm having trouble with
I get a Type Mismatch error
when I use just one of the criteria values it works ok, but not with both.
How can I make it so that it searches on both criteria?
this is the part of the code I'm having trouble with
Code:
StrStaffSearch = Str(Me!Staff)
StrDateSearch = Str(Me!StartDate)
rst.FindFirst "DateID = " & StrDateSearch And "StaffID = " & StrStaffSearch
I get a Type Mismatch error
when I use just one of the criteria values it works ok, but not with both.
How can I make it so that it searches on both criteria?