Hi,
I want to build a query in ACCESS to calculate a duration between today and invoice_date.
I built it as follows
SELECT DATEDIFF(MONTH, Date(), Invoice_Dt) AS [Month DatePart], DATEDIFF(YEAR, Date(), Invoice_Dt) AS [Year DatePart]
FROM tblEquipment
However, it prompted Month and then Year. It seems that the query doesn't work.
Any suggestions on this.
Thank you in advance.
I want to build a query in ACCESS to calculate a duration between today and invoice_date.
I built it as follows
SELECT DATEDIFF(MONTH, Date(), Invoice_Dt) AS [Month DatePart], DATEDIFF(YEAR, Date(), Invoice_Dt) AS [Year DatePart]
FROM tblEquipment
However, it prompted Month and then Year. It seems that the query doesn't work.
Any suggestions on this.
Thank you in advance.