There are two Address fields in an ACCESS table with
thousands of records, Addr1 and Addr2. I want to combine
Addr2 into Addr1. How do I do accomplish?
TIA
BACK UP YOUR DATABASE first, lest this go awry!
I'm *assuming*, perhaps erroneously, that you have addresses like
338 Wilshire Blvd
Suite 103
and that you want to concatenate them onto a single line:
338 Wilshire Blvd Suite 103
If so, create an Update query based on your table; on the Update To
line under Addr1 put
[Addr1] & " " & [Addr2]
If you want a comma between them, and if there are some without
anything in Addr2, you can use
Addr1 & (" " + [Addr2])
This sneakily uses the fact that the + operator concatenates strings,
but that if either string is NULL it returns NULL; the & operator
treats a NULL as an empty string "".
Finally... consider whether you really want to do this. Having the
fields separately gives you the flexibility to display them on two
lines as in my first example, *or* to concatenate them in a query;
once you've combined them it's much harder to get them apart.