I have a split form with an unbound text box and two buttons. One button for filter and the other for undo filter. Why does this code not work?
Private Sub cmdFilter_Click()
Me.Filter = "[initials:] = " & Me.[txtboxFilter]
Me.FilterOn = True
Me.Requery
End Sub
Private Sub cmdundofilter_Click()
Me.FilterOn = False
Me.Requery
End Sub
I first used <> in place of the []. The <> give a compile error, expected identifier or bracketed expression. So I tried the []. The [] will work but a after I enter what I want to search in the text box, a parameter prompt pops us again to ask for the same thing I just entered. Its annoying. How do I get this to stop?
Also when I open this split form that is bound to a query that searches the initials field, it shows all records. Even the records that are missing the initials field. How do I make so that on opening this split form, I start with just the records that actually have the initials field filled out? And from there I can filter it down to one particular clerk's initials?