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

Removing all characters after a certain point in a text field 1

Status
Not open for further replies.

CuckooNut

MIS
Oct 22, 2009
23
US
Hi everyone,

I have an Email field in my table that I converted from a Hyperlink field into a text field, and now all of the email addresses are concatenated with "#mailto:[the person's email address]". I need to delete everything from "#mailto" to the end of the string. I could go through and do it manually, but that would be very time consuming, so I am wondering if there is a way to do this through a query or using VBA.

Any thoughts?

Thanks!
 
how about
update table
set email=left(email,instr(email,"#mailto:")-1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top