Hello, tried to search the forum for a matching problem, but It's difficult to get exact results..
I'm working on a filter for my form, which is based on a list.
I've made an option group to filter the list based on status..
The only problem is that I have to manually update the form for the filter to take effect.
This fills a textbox with the desired ID.
I've tried putting in Me.SearchList.Requery in txtOptionResult on change/dirty but I still have to uypdate manually.
I'm working on a filter for my form, which is based on a list.
I've made an option group to filter the list based on status..
The only problem is that I have to manually update the form for the filter to take effect.
Code:
Private Sub optStatusFilter_AfterUpdate()
Dim strFill As String
Dim opt As OptionGroup
Set opt = Me.optStatusFilter
If opt = 1 Then
strFill = ""
ElseIf opt = 2 Then
strFill = "1"
ElseIf opt = 3 Then
strFill = "2"
ElseIf opt = 4 Then
strFill = "3"
End If
Me.txtOptionResult = strFill
End Sub
I've tried putting in Me.SearchList.Requery in txtOptionResult on change/dirty but I still have to uypdate manually.
