A
AltaEgo
I am trying to add a filter to an amend form.
In the header, I use the code below in a combobox (single column count).
The code dies on the line DoCmd.ApplyFilter , fltStr with the message "you
can't use the applyfilter action on this window".
How do I work around this?
Private Sub cboFindByDate_AfterUpdate()
Dim strCriteria As String
Dim fltStr As String
strCriteria = Me.CboFindByDate
fltStr = "xraydate ='" & mystr & "'"
DoCmd.ApplyFilter , fltStr
End Sub
In the header, I use the code below in a combobox (single column count).
The code dies on the line DoCmd.ApplyFilter , fltStr with the message "you
can't use the applyfilter action on this window".
How do I work around this?
Private Sub cboFindByDate_AfterUpdate()
Dim strCriteria As String
Dim fltStr As String
strCriteria = Me.CboFindByDate
fltStr = "xraydate ='" & mystr & "'"
DoCmd.ApplyFilter , fltStr
End Sub