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!

How can I match on the first 5 characters of a name

Status
Not open for further replies.

Goot

Programmer
Aug 4, 2005
86
US
I am trying to run a query based on name.
I have names in both tables that I am trying to match to.
How can I match on say the first 5 characters of the name?
I need a mid$([FieldName,1,5) somewhere?
 
WHERE Left(Table1.FieldName,5) = Left(Table2.FieldName,5)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top