G
Guest
I have this form, on the form there is 5 check boxes for years -2006, 2005,
2004, 2003 and All Years. i want that the user can filter on what year they
want. The user should be able to check more then one check box. Like if the
user wants to filter on only 2006 they can and if they want to filter on 2006
and 2004, or 2005, 2004 & 2003. It should be open to what they want to
filter on. I dont have them in a Option group. But can i Still use the same
code like the one below or their is another way of doing this. Please Help!
Select Case Me.frayear.Value
Case 1
stryear = "='2006'"
Case 2
stryear = "='2005'"
Case 3
stryear = "='2004'"
case 4
stryear = "='2003'"
Case 5
stryear = "like '*'"
End Select
2004, 2003 and All Years. i want that the user can filter on what year they
want. The user should be able to check more then one check box. Like if the
user wants to filter on only 2006 they can and if they want to filter on 2006
and 2004, or 2005, 2004 & 2003. It should be open to what they want to
filter on. I dont have them in a Option group. But can i Still use the same
code like the one below or their is another way of doing this. Please Help!
Select Case Me.frayear.Value
Case 1
stryear = "='2006'"
Case 2
stryear = "='2005'"
Case 3
stryear = "='2004'"
case 4
stryear = "='2003'"
Case 5
stryear = "like '*'"
End Select