G
Guest
Have a form based on a query to calculate an expiration date. WarrantyMonths is a number field. InvoiceDate is a date field. I’ve written the following expression to the query
ExpiresDate: IIf(IsNull(VehicleServiceDetails!WarrantyMonths),"",DateAdd("m",[WarrantyMonths],[InvoiceDate])
However, if I try to sort the ExpiresDate, the results appear to sort by month and day only, not month, day and year.
Eg results of sort ascending:
ExpiresDat
03/20/200
04/28/200
06/09/200
06/11/200
06/11/200
06/19/200
08/20/200
10/23/200
12/10/200
Additionally, I would like to use conditional formatting to flag unexpired warranties with green. If I set the form control DateExpires to
Field Value Is Greater than or equal to Date() The 04/28/2005 record shows as expired and the 12/10/2002 record shows as unexpired. Any assitance is appreciated.
Thank you
Chris
ExpiresDate: IIf(IsNull(VehicleServiceDetails!WarrantyMonths),"",DateAdd("m",[WarrantyMonths],[InvoiceDate])
However, if I try to sort the ExpiresDate, the results appear to sort by month and day only, not month, day and year.
Eg results of sort ascending:
ExpiresDat
03/20/200
04/28/200
06/09/200
06/11/200
06/11/200
06/19/200
08/20/200
10/23/200
12/10/200
Additionally, I would like to use conditional formatting to flag unexpired warranties with green. If I set the form control DateExpires to
Field Value Is Greater than or equal to Date() The 04/28/2005 record shows as expired and the 12/10/2002 record shows as unexpired. Any assitance is appreciated.
Thank you
Chris