I've got a fairly simple query. I'm attempting to pull some data based on a "FirstEffectiveDate" and a "CancelDate". What I'm doing is comparing the amount of time an insurance contract has been in-force. Unfortunately, if it is still in-force, the "CancelDate" field is blank/null. What I've tried to do is create an IIf statement that will put in today's date if the field is blank. Unfortunately, what I've tried to use keeps creating an error with the old "Data type mismatch in criteria expression" error. This is the query line I've used:
Cancel Date: IIf([dbo_UWMaster].[Canceldate]="",+Date(),+[dbo_UWMaster].[Canceldate])
I've formatted the field to be a short date so I don't know why I'm getting the error. Please let me know what I"m doing wrong!
Thanks,
Bassman
Cancel Date: IIf([dbo_UWMaster].[Canceldate]="",+Date(),+[dbo_UWMaster].[Canceldate])
I've formatted the field to be a short date so I don't know why I'm getting the error. Please let me know what I"m doing wrong!
Thanks,
Bassman