There are three tables to allow individual addresses to have multiple types. What I would like is to produce output that has one address per line, with the types listed for each.
Here are the table structures:
Table 1: Addresses
AddressID (123,124,125,126 etc)
AddressLine1
AddressLine2
AddressTown
etc
Table 2: Address_AddressType
AddressID
TypeID
Table 3: AddressType
TypeID (1,2,3,4 etc)
TypeDescription (A,B,C,D etc)
Table 1 has one address per record. Table 2 has a record for each combination of AddressID and TypeID. Table 3 is just a type lookup table.
The output that I would like would read as follows:
AddressID AddressLine1 AddressLine2 AddressTown Types
123 Tech House 12 No street NoVille A, D
124 Next House 41 Other St NewTown B, C
125 Big Shop 1 The Place BigTown D
This seems simple enough, but I can't get Access to play ball.
cheers
HP
Here are the table structures:
Table 1: Addresses
AddressID (123,124,125,126 etc)
AddressLine1
AddressLine2
AddressTown
etc
Table 2: Address_AddressType
AddressID
TypeID
Table 3: AddressType
TypeID (1,2,3,4 etc)
TypeDescription (A,B,C,D etc)
Table 1 has one address per record. Table 2 has a record for each combination of AddressID and TypeID. Table 3 is just a type lookup table.
The output that I would like would read as follows:
AddressID AddressLine1 AddressLine2 AddressTown Types
123 Tech House 12 No street NoVille A, D
124 Next House 41 Other St NewTown B, C
125 Big Shop 1 The Place BigTown D
This seems simple enough, but I can't get Access to play ball.
cheers
HP