A
AJOLSON
I am using the code below to filter a form from an combo box. However all I
am getting is all records filtered out or null return.
Lets assume the combo box has a value of "C". This code is working down to
StrTemp = combo8.text. but when applied in the next line
Docmd.applyfilter,"Field1 = StrTemp" I get a null result when I would expect
a "C" Result.
Any help would be appreciated
Here is my code:
Private Sub Command6_Click()
Dim StrTemp As String
Combo8.SetFocus
StrTemp = Combo8.Text
DoCmd.ApplyFilter , "Field1 = StrTemp"
Stop
End Sub
am getting is all records filtered out or null return.
Lets assume the combo box has a value of "C". This code is working down to
StrTemp = combo8.text. but when applied in the next line
Docmd.applyfilter,"Field1 = StrTemp" I get a null result when I would expect
a "C" Result.
Any help would be appreciated
Here is my code:
Private Sub Command6_Click()
Dim StrTemp As String
Combo8.SetFocus
StrTemp = Combo8.Text
DoCmd.ApplyFilter , "Field1 = StrTemp"
Stop
End Sub