P
Popeye
Hi everyone
A user enters an address (address1, address2, address3, city, postcode) and
I need to generate a unique reference for the property. In order to do this,
I'd like to concatenate the postcode and the house number. The resultant
reference should be stored in the table in a field called <Reference>.
I can have a (hidden) textbox on the form and it's control source set to
"=[postcode] & ", " & [address1]", but this takes the whole of the first line
of the address. How do I strip out the house number? Sometimes the user
separates the house number from the street name with a space and sometimes
with a comma.
I assume that all spaces should be stripped out of address1 and then the
string stepped until a non-numeric is reached. That's where my knowledge
ends so the questions are:
How do I strip out the house number and how do I ensure that the
concatenated property reference is stored in the Reference field in the table?
Thanks for your patience.
A user enters an address (address1, address2, address3, city, postcode) and
I need to generate a unique reference for the property. In order to do this,
I'd like to concatenate the postcode and the house number. The resultant
reference should be stored in the table in a field called <Reference>.
I can have a (hidden) textbox on the form and it's control source set to
"=[postcode] & ", " & [address1]", but this takes the whole of the first line
of the address. How do I strip out the house number? Sometimes the user
separates the house number from the street name with a space and sometimes
with a comma.
I assume that all spaces should be stripped out of address1 and then the
string stepped until a non-numeric is reached. That's where my knowledge
ends so the questions are:
How do I strip out the house number and how do I ensure that the
concatenated property reference is stored in the Reference field in the table?
Thanks for your patience.