R
rozycki1978
I am trying to use the value in a combo box to filter a form. However,
I have not been able to find the right syntax to make my code work
properly.
Private Sub Combo60_AfterUpdate()
Dim ComboMeal As String
ComboMeal = Me.Combo60
Me.Filter = "[Field Technician] = ComboMeal"
Me.FilterOn = True
End Sub
How can I properly reference the ComboMeal variable within the
Me.Filter statement? Alternatively I could use the value directly from
Me.Combo60 but I have the same syntax or reference problem within the
confines of the Filter statement.
Help is much appreciated!
I have not been able to find the right syntax to make my code work
properly.
Private Sub Combo60_AfterUpdate()
Dim ComboMeal As String
ComboMeal = Me.Combo60
Me.Filter = "[Field Technician] = ComboMeal"
Me.FilterOn = True
End Sub
How can I properly reference the ComboMeal variable within the
Me.Filter statement? Alternatively I could use the value directly from
Me.Combo60 but I have the same syntax or reference problem within the
confines of the Filter statement.
Help is much appreciated!