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

Select query 1

Status
Not open for further replies.

PappaG

Technical User
Nov 21, 2003
288
GB
Hi All

Can anyone help i am looking for a query that will select anything from the left of the @ sign please see below examples

example 1 VQ_Booking@NIVR
example 2 45332@Newcastle

I require only

exapmle 1 VQ_Booking
example 2 45332@Newcastle
 
Have a look at the Left and InStr functions.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Try
Code:
Left([fldname], Instr(1,[FldName],"@")-1)
 
Thanks Golum

Works a treat how the heck you guys come up with these baffles me but thanks all the same
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top