You could use an expression like this as a calculated field in query design
view:
StreetName: Mid([AddressField],Instr([AddressField]," ") + 1)
This should return everything to the right of the first space in the address
field. Sort on the calculated field, then the address field. Be advised it
may not always do the trick, depending on the data in the field. For an
address without a number, for instance, it will eliminate the first word in
the address.
A better option in the long run would be to add a StreetNumber field and a
StreetName field to the table, then use an update query to extract the
street number as the value for the StreetNumber, maybe with an expression
something like this:
Left([AddressField],Instr([AddressField]," ") - 1)
You could use an expression like the first one to populate the StreetName
field.
You will want to review all of the addresses before deleting the original
Address field.
There are other ways you could go about the same thing, but in general I
think you would do well to keep the original field rather than updating it.
It is probably the best way to check whether the new fields contain the data
they should.
TomC said:
I have a street address text field. I would like to remove the address
number from the beginning of the field and be left with just the street
name
so that I can sort the file on street name. I am aquainted with Access
but
do not know Visual Basic. Is there something available that I can use to
acomplish this?? Thanks in advance for any help. Tomc