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

Query for portion of data

Status
Not open for further replies.

RiverHorse

Programmer
May 9, 2001
5
US
Hello everyone,

My db has a field for e-mail addresses among many other fields. I need to create an Access query that will pull all data and sort it by the characters that appear after the "@" sign, basically ignoring everything before the "@" sign.

How can I do this?

Thanks in advance for any assistance with this.

Drew
 
Hi Drew!

In your query add this field:

NewfieldName: Mid([TableName]![EmailField],InStr([TableName]![EmailField])+1)

Sort by this field. Please note that you must substitute the appropriate names from your Db for TableName and EmailField, what you put in for NewfieldName is optional.

hth
Jeff Bridgham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top