I am trying to subtract the date in one field to get another date in another field. For example, the date in ADJ_DATE field is 20020718, I want the SCRUB_DATE field to be ADJ_DATE-1, 20020717. Why doesn't this query work?
SELECT pend_summary.RPT_DATE, pend_summary.ADJ_DATE, pend_summary.SCRUB_DATE
FROM pend_summary
WHERE ((pend_summary.SCRUB_DATE)=DateAdd("d",-1,[pend_summary]![RPT_DATE]));
The field properties are set to Date/Time.
Please help
SELECT pend_summary.RPT_DATE, pend_summary.ADJ_DATE, pend_summary.SCRUB_DATE
FROM pend_summary
WHERE ((pend_summary.SCRUB_DATE)=DateAdd("d",-1,[pend_summary]![RPT_DATE]));
The field properties are set to Date/Time.
Please help