Sort of a Access Query riddle with address fields.

H

hcj

Hi Landen,
If the street name always occurs after the first space,
you could use this calculated field in a query to break
out and sort on the street name. If there are variations
that would break this rule (e.g. 123 N. Main St.), then
you'll have to play with the idea to get at the string
following the 2nd space, etc.

StreetName: Right([address],Len([address])-InStr
([address]," "))

Just an idea.
-----Original Message-----
Hi all. I am trying to find a way to use an expression
that can look at an address (all in one field -
example "325 Providence Road") and have it sort by the
street name instead of the street number. I don't have a
way to break the street numbers out as a seperate field
because of the front end app. I thought about converting
each character from left to right to ASCII and then
looking for the first alphabetic character in the range of
ASCII characters and using that to sort by, but I can't
figure out how to do it. Does anyone have any other
suggestions? Thanks in advance.
 

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