G
Guest
In Access 2003, I want to make a query that selects records based on a date.
I have a form with a combo box labeled: "All Records Since:" The choices are
Yesterday, One Week Ago, Two Weeks Ago, One Month Ago. Depending on which is
chosen, I want >Date()-2, >Date()-8, >Date-15, and >Date()-32 to be the
Criterion for the query.
But I can't make it work. If I use the IIF function, the query returns no
records at all (maybe I'm writing it wrong). If I reference the bound column
on the form, Access says the expression is too complex to be evaluated.
Can anybody help? I am open to doing it any old way at all, but I don't
know a whole lot of VBA.
I have a form with a combo box labeled: "All Records Since:" The choices are
Yesterday, One Week Ago, Two Weeks Ago, One Month Ago. Depending on which is
chosen, I want >Date()-2, >Date()-8, >Date-15, and >Date()-32 to be the
Criterion for the query.
But I can't make it work. If I use the IIF function, the query returns no
records at all (maybe I'm writing it wrong). If I reference the bound column
on the form, Access says the expression is too complex to be evaluated.
Can anybody help? I am open to doing it any old way at all, but I don't
know a whole lot of VBA.