D
Duncs
I have 1 table with address details, in the format:
BuildingName
StreetName
Suburb
Town
County
Postcode
This information gets appended to another table, which has the
following fields for address:
Addr1
Addr2
Addr3
Addr4
Addr5
Addr6
Addr7
Postcode
So far, so good. However, the data needs to be appended as follows:
If BuildingName is not null, put it in Addr1 field.
If BuildingName is null, put Street in Addr1
If Suburb is not null, put it in the Addr2 field
If Suburb is null, put Town in the Addr2 field
And so on.....
I can append the data and then run a series of queries to move the
data along, whihc is time consuming. So, what I want to know is, is
there a way to either:
1. Append the data as above, taking not of null & non null fields
2. Make the update query more intelligent, to run as the one query,
and tidy up all address info
Many TIA for your help.
Duncs
BuildingName
StreetName
Suburb
Town
County
Postcode
This information gets appended to another table, which has the
following fields for address:
Addr1
Addr2
Addr3
Addr4
Addr5
Addr6
Addr7
Postcode
So far, so good. However, the data needs to be appended as follows:
If BuildingName is not null, put it in Addr1 field.
If BuildingName is null, put Street in Addr1
If Suburb is not null, put it in the Addr2 field
If Suburb is null, put Town in the Addr2 field
And so on.....
I can append the data and then run a series of queries to move the
data along, whihc is time consuming. So, what I want to know is, is
there a way to either:
1. Append the data as above, taking not of null & non null fields
2. Make the update query more intelligent, to run as the one query,
and tidy up all address info
Many TIA for your help.
Duncs