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

Remove data after comma 1

Status
Not open for further replies.

humbleprogrammer

Programmer
Oct 30, 2002
315
0
0
US
Hello - I have a bunch of data that has a comma and I would like to replace the , and anything after it. For example..

Glendale Height, IL 60139

I want to update to just
Glendale Height

Can someone let me know how I can do this with Access?

 
Code:
WhatYouWant = left("Glendale Height, IL 60139",instr(1,"Glendale Height, IL 60139",",")-1)


TMTOWDI - it's not just for Perl any more
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top