G
Guest
I have read numerous threads on this subject but nothing has worked for me
yet. I am using Access 2003.
My current code for the combo box named ProgramFilter is:
Private Sub ProgramFilter_AfterUpdate()
Dim sProgram
With ProgramFilter
If .ListIndex <> -1 Then
sProgram = .Column(.BoundColumn - 1)
Me.Filter = "[Program] = sProgram"
Me.FilterOn = True
MsgBox "Filter Applied"
End If
End With
End Sub
The filter part works but it isn't setting the combo box choice as the value
of sProgram. I only get a dialog box that pops up saying "Enter Parameter
Value". If I enter a valid value the form is filtered correctly, but I want
the combo box to set the parameter value as is intended.
Thank you for any guidance you can provide.
yet. I am using Access 2003.
My current code for the combo box named ProgramFilter is:
Private Sub ProgramFilter_AfterUpdate()
Dim sProgram
With ProgramFilter
If .ListIndex <> -1 Then
sProgram = .Column(.BoundColumn - 1)
Me.Filter = "[Program] = sProgram"
Me.FilterOn = True
MsgBox "Filter Applied"
End If
End With
End Sub
The filter part works but it isn't setting the combo box choice as the value
of sProgram. I only get a dialog box that pops up saying "Enter Parameter
Value". If I enter a valid value the form is filtered correctly, but I want
the combo box to set the parameter value as is intended.
Thank you for any guidance you can provide.