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

Like indicator applied to forms variable in query

Status
Not open for further replies.

AvGuy

Programmer
Jan 8, 2003
126
US
I want to specify criteria in a query that comes from a form control using the Like operator. Only I want to limit the number of characters to 4, like this for a criteria statement:

Like Left(Forms!MyForm!MyControl,4)*

In other words, if the value in the control is 123456 I want to limit the criteria to 1234. I can't seem to find a syntax to make it go and, believe me, I've tried.

Any ideas?

AvGuy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top