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

filter to part of a record

Status
Not open for further replies.

Ali29J

Technical User
May 13, 2004
203
GB
Hi All

I have query which I m trying to obtain sales performance per sales person. Each sales person is allocate 2 initial, which is used to track which sales person submitted a quote, followed by an a 4 figure number which is unique to each quote, which makes up the complete enquiryID, as below:

BG**** - salesman 1
TW**** - salesman 2
KK**** - salesman 3

what i would like is to enter into the criteria to filter to only the first 2 letters, is this possible?

Thanks

Ali
 
Something like this ?
Like 'TW*'

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hi
Something like this (?):
[tt]SELECT SalesID, Left([SalesID],2) AS Initials FROM tblMyTable[/tt]
 
HI PHV

so simple but worked like a charm

Ali
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top