cos
Registered User.
- Local time
- Today, 13:34
- Joined
- Jul 13, 2012
- Messages
- 81
hi fellers,
how do i set a double filter? i have two combo boxes with a selection of record details, so that when u select an option in the first combo box, the form filters; when u select an option in the second combo box, i want it to filter with two criteria's now..
however if one of them is blank, i want the other to still do its filter!
any ideas? =/
the screeny below is what i tried to acomplish..
and this was the other idea:
where i had two cancel buttons next to each combo..
i think im going in circles..
how do i set a double filter? i have two combo boxes with a selection of record details, so that when u select an option in the first combo box, the form filters; when u select an option in the second combo box, i want it to filter with two criteria's now..
however if one of them is blank, i want the other to still do its filter!
any ideas? =/
the screeny below is what i tried to acomplish..
and this was the other idea:
Code:
Private Sub Command87_Click()
Me.Combo35 = ""
If IsNull([Combo82]) Then
Else
DoCmd.SetFilter "", "[ShV_Manager]=[Forms]![01_VisitsList]![Combo82]", ""
End If
End Sub
Private Sub Command88_Click()
Me.Combo82 = ""
If IsNull([Combo35]) Then
Else
DoCmd.SetFilter "", "[Sh_Name]=[Forms]![01_VisitsList]![Combo35]", ""
End If
End Sub
i think im going in circles..