Hi everyone,
I have a blank. Its been a while that I have played with queries. I created a simple query that would filter out from 2 different fields on a form. The only thing is that I can use either one or the other field. If I use both, the query doesnt work porperly. ... see code
What I would like is the possibility to use, both fields to filter, or use them seperately.
I've been trying the "Like" command too... didnt work (ex: Like "*" & [ppdtrad1] & "*")
Thanks in advance for any advice,
Luc
I have a blank. Its been a while that I have played with queries. I created a simple query that would filter out from 2 different fields on a form. The only thing is that I can use either one or the other field. If I use both, the query doesnt work porperly. ... see code
Code:
SELECT Calls.[Opened Date], Calls.[Opened By],
Calls.[PPD or TRAD], Calls.ID, Calls.Title
FROM Calls
WHERE (((Calls.[Opened Date]) Between [startdate] And [enddate])
AND ((Calls.[Opened By])=[openedby]))
OR (((Calls.[PPD or TRAD])=[ppdtrad1]));
What I would like is the possibility to use, both fields to filter, or use them seperately.
I've been trying the "Like" command too... didnt work (ex: Like "*" & [ppdtrad1] & "*")
Thanks in advance for any advice,
Luc