G
Guest
Hello Everybody,
I would like to include a like statement in my combo look up filter. This
is what is in the criterion now:
[forms]![frmSearch]![cboStreetNames]
This is the SQL I've used in the past, it works great but I would rather use
a combo box instead of a parameter prompt:
SELECT tblCuts.DateCalled, *
FROM tblCuts
WHERE (((tblCuts.Address1) Like "*" & [STREET NAME] & "*")) OR
(((tblCuts.StreetName) Like "*" & [STREET NAME] & "*")) OR (((tblCuts.From)
Like "*" & [STREET NAME] & "*")) OR (((tblCuts.To) Like "*" & [STREET NAME] &
"*"))
ORDER BY tblCuts.DateCalled DESC;
It would be great if I could select from the combo if there were something
available, but also have the like statement to filter on if there are no
matches.
Thanks,
NX
I would like to include a like statement in my combo look up filter. This
is what is in the criterion now:
[forms]![frmSearch]![cboStreetNames]
This is the SQL I've used in the past, it works great but I would rather use
a combo box instead of a parameter prompt:
SELECT tblCuts.DateCalled, *
FROM tblCuts
WHERE (((tblCuts.Address1) Like "*" & [STREET NAME] & "*")) OR
(((tblCuts.StreetName) Like "*" & [STREET NAME] & "*")) OR (((tblCuts.From)
Like "*" & [STREET NAME] & "*")) OR (((tblCuts.To) Like "*" & [STREET NAME] &
"*"))
ORDER BY tblCuts.DateCalled DESC;
It would be great if I could select from the combo if there were something
available, but also have the like statement to filter on if there are no
matches.
Thanks,
NX