Hi Chey
If TA Number is a numeric field:
Me.Filter = "[TA Number]=" & Me![TA Number]
Me.FilterOn = True
and if it's a text field
Me.Filter = "[TA Number]='" & Me![TA Number] & "'"
Me.FilterOn = True
Note that the [TA Number] after Me! is the name of the control (textbox),
which could be different from the name of the field.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
Chey said:
I have the focus on a field. What is the code to filter by selection.
my field name is Travel Request.TA Number.
Thanks