G
Guest
Please be patient with me, I have looked for this question in the forums and
could not find an answer. Also I am very new to Access and Forms.. the boss
chucked this task at me.
I have a form with a option group (optcontrol) that has 5 options in it. I
need to edit my query to only show dates from today and back based on my
option choice.
1= Optall (hopefully all dates)
2= optlast30 (should show data from today and back 30days)
3= optlast60
4= optlast90
5= optlast120
The code I have tested.
I edit the critera on the date field with this code and got an error.
=Chooce([optcontrol],"", "Between Date() and Date()-30", "Between Date() and
Date()-60", "so on and so on") The "" in the first choice should
give me all dates ( or at least in my mind)
could not find an answer. Also I am very new to Access and Forms.. the boss
chucked this task at me.
I have a form with a option group (optcontrol) that has 5 options in it. I
need to edit my query to only show dates from today and back based on my
option choice.
1= Optall (hopefully all dates)
2= optlast30 (should show data from today and back 30days)
3= optlast60
4= optlast90
5= optlast120
The code I have tested.
I edit the critera on the date field with this code and got an error.
=Chooce([optcontrol],"", "Between Date() and Date()-30", "Between Date() and
Date()-60", "so on and so on") The "" in the first choice should
give me all dates ( or at least in my mind)