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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ACCESS SQL- Using 'LIKE' with a Field on a form

Status
Not open for further replies.

jase2006

Technical User
Nov 17, 2006
53
0
0
GB
Can any tell me how I can using the keyword LIKE to compare a table field with a textbox on a form e.g.

X.user LIKE '* Form Text box value *'

I've tried something like this

(([Skill Import].User)LIKE '*' & [forms]![frmSkillView].[txtUser])) & '*'

but does seem to work.
 
You need to specify the property of the text box

like this:

Code:
[Skill Import].User LIKE '*' & [forms]![frmSkillView].[txtUser][b].Value[/b] & '*'

In the future, for access questions please try forum701

hope this helps,

Alex



Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top