A
aglaia761
Hi,
I have my participants contact info in one table. I have another
table that is travel information for most not all of these
participants. I'd like to create an auto lookup query that will
automatically enter data from the contact info table into the travel
info table so I don't have to retype it
If anyone could help me figure out what I'm doing wrong I'd appreciate
it.
Here is my SQL info.
SELECT [Contact Info].ID, [Travel Information].[First Name], [Travel
Information].[Last Name], [Travel Information].Address, [Travel
Information].City, [Travel Information].State, [Travel
Information].Zipcode, [Travel Information].[Phone Number], [Travel
Information].[Fax Number], [Travel Information].[Email Address]
FROM [Travel Information] INNER JOIN [Contact Info] ON ([Travel
Information].[Email Address] = [Contact Info].ID) AND ([Travel
Information].[Fax Number] = [Contact Info].ID) AND ([Travel
Information].[Phone Number] = [Contact Info].ID) AND ([Travel
Information].Zipcode = [Contact Info].ID) AND ([Travel
Information].State = [Contact Info].ID) AND ([Travel Information].City
= [Contact Info].ID) AND ([Travel Information].Address = [Contact
Info].ID) AND ([Travel Information].[Last Name] = [Contact Info].ID)
AND ([Travel Information].[First Name] = [Contact Info].ID) AND
([Travel Information].ID = [Contact Info].ID);
I have my participants contact info in one table. I have another
table that is travel information for most not all of these
participants. I'd like to create an auto lookup query that will
automatically enter data from the contact info table into the travel
info table so I don't have to retype it
If anyone could help me figure out what I'm doing wrong I'd appreciate
it.
Here is my SQL info.
SELECT [Contact Info].ID, [Travel Information].[First Name], [Travel
Information].[Last Name], [Travel Information].Address, [Travel
Information].City, [Travel Information].State, [Travel
Information].Zipcode, [Travel Information].[Phone Number], [Travel
Information].[Fax Number], [Travel Information].[Email Address]
FROM [Travel Information] INNER JOIN [Contact Info] ON ([Travel
Information].[Email Address] = [Contact Info].ID) AND ([Travel
Information].[Fax Number] = [Contact Info].ID) AND ([Travel
Information].[Phone Number] = [Contact Info].ID) AND ([Travel
Information].Zipcode = [Contact Info].ID) AND ([Travel
Information].State = [Contact Info].ID) AND ([Travel Information].City
= [Contact Info].ID) AND ([Travel Information].Address = [Contact
Info].ID) AND ([Travel Information].[Last Name] = [Contact Info].ID)
AND ([Travel Information].[First Name] = [Contact Info].ID) AND
([Travel Information].ID = [Contact Info].ID);