query assistance

J

JohnE

I have the following SELECT statement that works like I
need it to. But, in the table will be demo clients that I
do not need to have show on a report unless it is a demo
report. As mentioned, the following works but now I need
to have the demos removed and still keep it where if the
Overall Status drop list is empty, it still gives all
clients except the demos.

SELECT ClientName, ClientStreetAddress1,
ClientStreetAddress2, ClientStreetAddressCity,
ClientStreetAddressState, ClientStreetAddressZipCode,
GeneralTelephone, GeneralFax, AccountManagement,
AccountManagementPerson, OverallClientStatus, SalesPerson,
EffectiveDate, Broker, BusinessUnit
FROM usrtblClientInformation
WHERE (((ClientName)=[Forms]![usrfrmReportModule]!
[cbxClientName])
AND ((OverallClientStatus)=[Forms]![usrfrmReportModule]!
[cbxOverallClientStatus]))
OR (((OverallClientStatus)=[Forms]![usrfrmReportModule]!
[cbxOverallClientStatus])
AND (([Forms]![usrfrmReportModule]![cbxClientName]) Is
Null))
OR (((ClientName)=[Forms]![usrfrmReportModule]!
[cbxClientName])
AND (([Forms]![usrfrmReportModule]!
[cbxOverallClientStatus]) Is Null))
OR ((([Forms]![usrfrmReportModule]![cbxClientName]) Is
Null)
AND (([Forms]![usrfrmReportModule]!
[cbxOverallClientStatus]) Is Null));

Can anyone assist on this? Thanks in advance.
*** John
 

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

qryQuestion 4
needing query help 1
getting the right query info 1

Top