how to combine 2 fields: i.e. (house# + street)=(new)address

  • Thread starter Thread starter JimO
  • Start date Start date
J

JimO

I have two fields:1 # (numeric), & Street (text). How can I combine them
into a new field, Address?
 
JimO said:
I have two fields:1 # (numeric), & Street (text). How can I combine
them into a new field, Address?

Create a query.

Type this into a fresh column in the Field row:
FullAddress: Trim([F1] & " " & [F2])
substituting your field names for F1 and F2.

You should not store this into a new field in your table, unless there could
be valid reasons why the full address should *not* be the same as the
concatenation of the 2 fields. If you do need to so this, use an Update
query (Update on Query menu) to update the Address field to the expression
above.

More info in:
Calculated fields
at:
http://allenbrowne.com/casu-14.html
 
Try House_address = [house_number] & " " & [street]
Where house_number is the numeric number of the house.

Allan
 
Thank you Allen!

Allen Browne said:
JimO said:
I have two fields:1 # (numeric), & Street (text). How can I combine
them into a new field, Address?

Create a query.

Type this into a fresh column in the Field row:
FullAddress: Trim([F1] & " " & [F2])
substituting your field names for F1 and F2.

You should not store this into a new field in your table, unless there could
be valid reasons why the full address should *not* be the same as the
concatenation of the 2 fields. If you do need to so this, use an Update
query (Update on Query menu) to update the Address field to the expression
above.

More info in:
Calculated fields
at:
http://allenbrowne.com/casu-14.html
 
Thank you Allan!
Allan Murphy said:
Try House_address = [house_number] & " " & [street]
Where house_number is the numeric number of the house.

Allan

JimO said:
I have two fields:1 # (numeric), & Street (text). How can I combine them
into a new field, Address?
 

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

Back
Top