This site is awesome and I have learned a ton reading other posts. Here is a little snag I'm not sure how to clear up.
On a main form with a subform I have an unbound combo box. After update the combo box filters the form. Works great. I can select the navigation button on the bottom to unfilter, fine, but if I delete what is in the combo box I get an error. Here is what I have:
Private Sub Combo124_AfterUpdate()
Me.Filter = "ID = " & Me.Combo124
Me.FilterOn = True
End Sub
How do I make the filter false if the combo box is blank?
Thanks and feel free to laugh at my ignorance, really, I don't mind.
On a main form with a subform I have an unbound combo box. After update the combo box filters the form. Works great. I can select the navigation button on the bottom to unfilter, fine, but if I delete what is in the combo box I get an error. Here is what I have:
Private Sub Combo124_AfterUpdate()
Me.Filter = "ID = " & Me.Combo124
Me.FilterOn = True
End Sub
How do I make the filter false if the combo box is blank?
Thanks and feel free to laugh at my ignorance, really, I don't mind.