Hmm. So customer 1 could have an address in Address1, and customer 2 could
have the same address in Address2, but you want the number of distinct
addresses across the 4 fields for all customers?
1. Create a new query.
2. Switch it to SQL View.
3. Paste this in, changing Table1 to the name of your table:
SELECT Address1 AS TheAddress FROM Table1
WHERE Address1 Is Not Null
UNION
SELECT Address2 AS TheAddress FROM Table1
WHERE Address2 Is Not Null
UNION
SELECT Address3 AS TheAddress FROM Table1
WHERE Address3 Is Not Null
UNION
SELECT Address4 AS TheAddress FROM Table1
WHERE Address4 Is Not Null;
4. Run the query, to see how many you get.
Ultimately, this is not a relational design. Whenever you see repeating
fields (such as Address1, Address2, ...), it should be broken down into
another table where one customer can have many addresses (a one-to-many
relation.)
Since you are asking about distinct addresses, you may actually have a
many-to-many relation between customers and addresses, which would need a
junction table between a customer table and an address table. Post a reply
if you need more information about that.