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

Using Left function in Query criteria

Status
Not open for further replies.

bren11

Programmer
Mar 14, 2002
21
US

I am wanting to use criteria that matches only the left 3 characters of the value in an input box on a a form, but am not having much luck...syntax I am using is

Like Left([Forms]![frmMyForm]![txtMyTextBox],3)
or just

Left([Forms]![frmMyForm]![txtMyTextBox],3)

but it's not returning any results. Any ideas would be greatly appreciated!

Thanks
 
Bren,

Try:

Like Left([Forms]![frmMyForm]![txtMyTextBox],3) & "*"

HTH,
Wayne
 
Thank you, Wayne, you rock! Works beautifully!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top