I have a problem comparing dates in a query. I’m using Access 2002 and the “date” fields I’m comparing were text fields. I’ve converted them to date fields using CDATE.
Example: IIF ([Acceptdate]>=[RejectStart],[Acceptdate],[Rejectdate])
Example of Acceptdates: 06/01/2003, 06/12/2004, 07/01/04
Example of RejectStart: 06/01/2004
Based on my IIF statement – I would expect only 6/12/2004 and 07/01/2004 to be returned – instead I also get the 06/01/2003.
I’m sure there must be a very simple explanation – but I can’t seem to figure it out.
Please help……
Example: IIF ([Acceptdate]>=[RejectStart],[Acceptdate],[Rejectdate])
Example of Acceptdates: 06/01/2003, 06/12/2004, 07/01/04
Example of RejectStart: 06/01/2004
Based on my IIF statement – I would expect only 6/12/2004 and 07/01/2004 to be returned – instead I also get the 06/01/2003.
I’m sure there must be a very simple explanation – but I can’t seem to figure it out.
Please help……