criteria different in 2 fields

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a course database where the table contains term, subject, courseno. I
need the query criteria to be subject = ENG or FLR and courseno <500. But I
also need subject to be WR and courseno >123. Is there a way I can do this?
 
Try

Select * From TableName
Where
(subject In ("ENG" ,"FLR") And courseno <500) Or
(subject = "WR" And courseno >123)
 
That didn't work because it needs to be AND subject = WR and Courseno >123,
but you gave me an idea about creating a union query.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top