E
E. D.
Hi
I'm using DateDiff() in an expression in a query which works well until I
try to use the SQL as the source of a report. (I'm using Access 2K)
I get an error - the "d" is highlighted and an error messgae of "Expected
end of statement"
DateDiff("d", [InDate], Now())
I've included a cut down version of the SQL cade as the original code is too
long
SELECT Tbl_JobCodes.JobCode, Tbl_CouponsDates.InDate,
DateDiff("d",[InDate],Now()) AS [Days since InDate]
FROM Tbl_JobCodes LEFT JOIN Tbl_CouponsDates ON Tbl_JobCodes.JobCode =
Tbl_CouponsDates.JobCode
WHERE (((DateDiff("d",[InDate],Now()))<=90))
ORDER BY Tbl_CouponsDates.InDate;
Can anyone help?
Thanks in anticipation
I'm using DateDiff() in an expression in a query which works well until I
try to use the SQL as the source of a report. (I'm using Access 2K)
I get an error - the "d" is highlighted and an error messgae of "Expected
end of statement"
DateDiff("d", [InDate], Now())
I've included a cut down version of the SQL cade as the original code is too
long
SELECT Tbl_JobCodes.JobCode, Tbl_CouponsDates.InDate,
DateDiff("d",[InDate],Now()) AS [Days since InDate]
FROM Tbl_JobCodes LEFT JOIN Tbl_CouponsDates ON Tbl_JobCodes.JobCode =
Tbl_CouponsDates.JobCode
WHERE (((DateDiff("d",[InDate],Now()))<=90))
ORDER BY Tbl_CouponsDates.InDate;
Can anyone help?
Thanks in anticipation