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
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