G
Guest
I am trying to create the query to serve the multiple search criteria. I am
getting prolems with the null values. If I will enter values for search all
is working fine, but if I leave the criteria blank I am not getting the right
results. My SQL code below:
SELECT D.DNO, D.DES, D.MAC, D.PL
FROM D LEFT JOIN R ON D.DNO = R.DRG
WHERE (((D.DNO) Like "*" & [Forms]!![a] & "*" Or (D.DNO) Is Null) AND
((D.DES) Like "*" & [Forms]!! & "*" Or (D.DES) Is Null));
What I am doing wrong ?
Thanks for help.
Tony
getting prolems with the null values. If I will enter values for search all
is working fine, but if I leave the criteria blank I am not getting the right
results. My SQL code below:
SELECT D.DNO, D.DES, D.MAC, D.PL
FROM D LEFT JOIN R ON D.DNO = R.DRG
WHERE (((D.DNO) Like "*" & [Forms]!
((D.DES) Like "*" & [Forms]!
What I am doing wrong ?
Thanks for help.
Tony