Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB code error

Status
Not open for further replies.

dagoat10

Programmer
Jun 3, 2010
74
US
This is getting very frustrating and i need help

I am trying to use a filter on a form in access 2007 to give me the record that matches the name in the text box and this is the VB code i wrote for it

Private Sub Command17_Click()
Me.Filter = ""
Me.Filter = "Player=" & Me.Text15 (error on this line)

Me.FilterOn = True
Me.Requery
End Sub

it says there is a run-time error 3075
syntax error(missing operator) in query expression
Player = John Smith


It might be a silly mistake that i made but i need to know the answer please.

If you want me to post picks of my form i am willing to do so
 
Code:
Me.Filter = "Player='" & Me.Text15 & "'"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top