I have the following query:
[tt]
SELECT DISTINCT D.fdate, E.fempno, E.ffname, E.fname, E.fendate
FROM dbo_lamast AS D, dbo_PRempl AS E
WHERE (((D.fdate) Between [Start:] And [End:] And (D.fdate) Not In (SELECT fdate FROM dbo_lamast WHERE fempno = E.fempno)) AND ((E.fendate)=#1/1/1900#))
ORDER BY D.fdate, E.ffname, E.fname;
[/tt]
My problem is that I want the user to enter the date range only once, and then the query to use that date range to evaluate not only the fdate field, but also the fendate field; ((E.fendate)=#1/1/1900#) OR (fend > [Start:]). How can I do this?
Cheryl dc Kern
[tt]
SELECT DISTINCT D.fdate, E.fempno, E.ffname, E.fname, E.fendate
FROM dbo_lamast AS D, dbo_PRempl AS E
WHERE (((D.fdate) Between [Start:] And [End:] And (D.fdate) Not In (SELECT fdate FROM dbo_lamast WHERE fempno = E.fempno)) AND ((E.fendate)=#1/1/1900#))
ORDER BY D.fdate, E.ffname, E.fname;
[/tt]
My problem is that I want the user to enter the date range only once, and then the query to use that date range to evaluate not only the fdate field, but also the fendate field; ((E.fendate)=#1/1/1900#) OR (fend > [Start:]). How can I do this?
Cheryl dc Kern