G
Guest
Hi there would greatly appreciate any help. Only the last IF statement seems
to activate the Filter on the form from an unbound COmbo Box.
This is what I have so far...
Private Sub FilterByCombo_AfterUpdate()
If Me![FilterByCombo] = "All Open Calls" Then
Me.Filter = Me!CallClosed = False
Me.FilterOn = True
Else
Me.FilterOn = False
End If
If Me![FilterByCombo] = "All Closed Calls" Then
Me.Filter = Me!CallClosed = True
Me.FilterOn = True
Else
Me.FilterOn = False
End If
If Me![FilterByCombo] = "All Calls to change to RF2" Then
Me.Filter = Me!CallClosed = True And Me.Filter = Me![PartIn?] = True And
Me.Filter = Me!GoodsDespatched = False
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
Maybe there is a simpler way to do this, however I have not figured it out
yet. As you can guess it filters the form by the check box values being true
or false.
Thanks in advance.
Andi
to activate the Filter on the form from an unbound COmbo Box.
This is what I have so far...
Private Sub FilterByCombo_AfterUpdate()
If Me![FilterByCombo] = "All Open Calls" Then
Me.Filter = Me!CallClosed = False
Me.FilterOn = True
Else
Me.FilterOn = False
End If
If Me![FilterByCombo] = "All Closed Calls" Then
Me.Filter = Me!CallClosed = True
Me.FilterOn = True
Else
Me.FilterOn = False
End If
If Me![FilterByCombo] = "All Calls to change to RF2" Then
Me.Filter = Me!CallClosed = True And Me.Filter = Me![PartIn?] = True And
Me.Filter = Me!GoodsDespatched = False
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
Maybe there is a simpler way to do this, however I have not figured it out
yet. As you can guess it filters the form by the check box values being true
or false.
Thanks in advance.
Andi