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!

Extract Data based on values

Status
Not open for further replies.

Bronte1226

Technical User
Oct 18, 2002
123
US
OK I need to extract everything to the left of part of an address. For instance if the value for an address is "55 E Main St Unit 5" I need to remove everything to the left of "Unit 5" and put it into a new field "Address1". I am able to remove the "Unit 5" and place it into "Address 2" with this update query:

Mid(Customers![STREETNAME],InStr(Customers![STREETNAME],"Unit"),Len(Customers![STREETNAME])-6)

My tries to reverse this to capture the other side of this field have failed miserably...can anyone help a lost soul?

Many thanks...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top