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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL help ! thanks

Status
Not open for further replies.

Dre313

Technical User
Jun 4, 2003
219
US
Can someone help me with my SQL..

Im doing a search of unique records.. I can't get it to work after adding the Is null stmts..

Code:
SELECT *
FROM tblInspections
WHERE ((tblInspections.strDate) = Between [Forms]![Search]![open] OR IsNull([Forms]![Search]![open]) And [Forms]![Search]![close] OR IsNull([Forms]![Search]![close])) AND ((tblInspections.REJ=[Forms]![Search]![REJ]) OR IsNull([Forms]![Search]![REJ])) AND ((tblInspections.strProject=[Forms]![Search]![strProject]) OR IsNull([Forms]![Search]![strProject]));

thanks
 
This is AccessSQL not Microsoft SQL Server SQL. YOu will get a better answer in an Access forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top