alansidman
Well-known Member
- Joined
- Feb 26, 2007
- Messages
- 7,479
- Office Version
-
- 365
- Platform
-
- Windows
Queries - Parameter Setting in Query
--------------------------------------------------------------------------------
In a query I have developed, there is a field for Specialists. The end user has the option of selecting the particular specialist that they would like reports for by selecting the first four letters of the specialists last name and *. If the EU wishes to obtain the report for all specialists, he enters* and the enter key. The query operates as defined unless a specialists name is absent. In that case, the record is omitted from the report. I would like those records to appear when the EU selects all.
Here is the SQL for the query:
SELECT tblTermsNDA.ndaID AS ID, tblTermsNDA.ndaClient AS Client, tblTermsNDA.ndaReqDte AS RequestDate, tblTermsNDA.ndaSpec AS Specialist,
FROM tblTermsNDA
HAVING (((tblTermsNDA.ndaSpec) Like [Enter * for all or first four letters of last name and *])
What am I missing here to make it all inclusive.
I have tried changing the SQL for the Specialist to: nz(tblTermsNDA.ndaSpec,"") AS Specialist, but this does not seem to solve the problem either.
Thanks,
Alan
--------------------------------------------------------------------------------
In a query I have developed, there is a field for Specialists. The end user has the option of selecting the particular specialist that they would like reports for by selecting the first four letters of the specialists last name and *. If the EU wishes to obtain the report for all specialists, he enters* and the enter key. The query operates as defined unless a specialists name is absent. In that case, the record is omitted from the report. I would like those records to appear when the EU selects all.
Here is the SQL for the query:
SELECT tblTermsNDA.ndaID AS ID, tblTermsNDA.ndaClient AS Client, tblTermsNDA.ndaReqDte AS RequestDate, tblTermsNDA.ndaSpec AS Specialist,
FROM tblTermsNDA
HAVING (((tblTermsNDA.ndaSpec) Like [Enter * for all or first four letters of last name and *])
What am I missing here to make it all inclusive.
I have tried changing the SQL for the Specialist to: nz(tblTermsNDA.ndaSpec,"") AS Specialist, but this does not seem to solve the problem either.
Thanks,
Alan