J
John
I have the following SELECT statement (I removed some of
the SELECT part to shorten it) that works like I need it
to, for now. But, I was told that the 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,
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
the SELECT part to shorten it) that works like I need it
to, for now. But, I was told that the 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,
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