Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieving records for report

Status
Not open for further replies.

jimbo62

Technical User
Oct 19, 2002
43
US
I have a form that takes input from many fields and modifies the underlying query. I have this code for selecting a criteria based on a check box value.

This statement brings back a "Type mismatch" all fields are text ...

If (Me![ChkNODY]) = True And (Me![ChkNODN]) = True And (Me![chkNODX]) = False Then
sWhere = sWhere & " and qryEx_CauseByNOD.[NOD] = '" & "Y" Or "N" & "'"
End If

I want to be able to use an or statement to get 2 valuses returned.


Any Suggestions???

Thanks Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top