hansretallick
Technical User
I have a database which imports from another one using ODBC. In my database,the contacts table shows every detail of a contact as one record. The import database uses two tables for contacts, one which shows name, address etc, and a second table which uses the same key as the main contacts one, and then lists Email, home phone, work phone, mobile phone as separate records.
I need the import to show information with one record per contact and the secondary contact information to be presented as Email, home phone, work phone, mobile phone columns in the same record as the other contact details.
Table 1
Key
Name
Address
Date of birth
etc
Table 2
Key (equates to key in Table 1)
Type "1,2,3 etc"
Name "Email, home phone, work phone, mobile phone etc"
Data "fred@hotmail.com, 020 8701 xxxx, etc"
I think I need to use the TOP command, but I'm not sure how to write the SQL.
I would appreciate any help I can get for this. The database is .mdb version Access 2010.
I need the import to show information with one record per contact and the secondary contact information to be presented as Email, home phone, work phone, mobile phone columns in the same record as the other contact details.
Table 1
Key
Name
Address
Date of birth
etc
Table 2
Key (equates to key in Table 1)
Type "1,2,3 etc"
Name "Email, home phone, work phone, mobile phone etc"
Data "fred@hotmail.com, 020 8701 xxxx, etc"
I think I need to use the TOP command, but I'm not sure how to write the SQL.
I would appreciate any help I can get for this. The database is .mdb version Access 2010.