Hi - I am having some difficulty using a between statement in iif statements
My separate iif statement and between statements work but when I join them they don't
SELECT Table1.date1, Table1.value, Table1.value2
FROM Table1
WHERE (((Table1.date1)=IIf(Date()=#5/9/2003#,(Table1.date1) Between #1/1/2003# And #6/30/2003#)));
Please help - is it just a matter of using quotes in the right spot?
My separate iif statement and between statements work but when I join them they don't
SELECT Table1.date1, Table1.value, Table1.value2
FROM Table1
WHERE (((Table1.date1)=IIf(Date()=#5/9/2003#,(Table1.date1) Between #1/1/2003# And #6/30/2003#)));
Please help - is it just a matter of using quotes in the right spot?