Middle of String Parsing Query

Joined
Jul 9, 2007
Messages
2
Reaction score
0
I need the unit # out of the following string:
MEDICAL CENTER CONDO UNIT 203 DES IN ORB 1360 PG 325

Trim(Right([legal_description],Len([legal_description])-(InStr([legal_description],"unit")+4)))

Gives me: 203 DES IN ORB 1360 PG 325

How do I get rid of the rest? "DES IN ORB 1360 PG 325"

The "unit #" is not always in the same position in the string.

I know I need to use the MID function and probably relate to a space " ". It's been 3 yrs since I took an Access class and I have had no luck in my online searches.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top