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

easy SQL question 1

Status
Not open for further replies.

jimb0ne

Programmer
Oct 6, 2003
291
CA
I'm sql dumb, I'm trying to open a report based on a query which is based on a couple of tables. the wherecondition I'm trying to pass with the openreport method is the following:

Unit = "Audiology" OR ExtraUnit1 = "Audiology" OR ExtraUnit2 = "Audiology";

I keep getting a syntax error when I try to open the report, could someone let me know where I fudged?

thanks,
Jimb0ne
 
Do you have the entire WHERE parameter wrapped in double-quotes?

"( (Unit = 'Audiology') OR (ExtraUnit1 = 'Audiology') OR (ExtraUnit2 = 'Audiology') )"

-Gary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top