dominicdunmow
Technical User
I'm pretty new to Access and I'm trying what I thought was a relatively simple IIF statement...but it won't work!!
I'm trying to make the return in a field dependant on whether a date is less than the date in another field. The line I have used is:-
IIf([AmendTermStart]<=#01/10/2003#,([Cost (US)]/[TermLength]),"x")
Access doesn't seem to be able to compare the date in [AmendTermStart] with 01/10/2003 despite being the same format. So even for dates greater than 01/10/2003 it still returns the
([Cost (US)]/[TermLength])
Calculation.
Help!!
I'm trying to make the return in a field dependant on whether a date is less than the date in another field. The line I have used is:-
IIf([AmendTermStart]<=#01/10/2003#,([Cost (US)]/[TermLength]),"x")
Access doesn't seem to be able to compare the date in [AmendTermStart] with 01/10/2003 despite being the same format. So even for dates greater than 01/10/2003 it still returns the
([Cost (US)]/[TermLength])
Calculation.
Help!!