W
WayneS
I am trying to calculate the warranty expiration date on some records in a
table. WarrantyStartDate is Date/Time and WarrantyYears is Integer.
I have this expression in a query:
WarrantyExpire:
IIf([WarrantyYears]=1,DateAdd("y",1,[WarrantyStartDate]),IIf([WarrantyYears]=2,DateAdd("y",2,[WarrantyStartDate]),"Check"))
I receive this message:
'Data type mismatch in criteria expression.'
How can I restate this expression?
Thanks
table. WarrantyStartDate is Date/Time and WarrantyYears is Integer.
I have this expression in a query:
WarrantyExpire:
IIf([WarrantyYears]=1,DateAdd("y",1,[WarrantyStartDate]),IIf([WarrantyYears]=2,DateAdd("y",2,[WarrantyStartDate]),"Check"))
I receive this message:
'Data type mismatch in criteria expression.'
How can I restate this expression?
Thanks