Dear all. We have a database which holds various tables. One of them is called "tblRespondentTasks" which holds the activities (Task) a person has taken part in over time. This table grows over time as more tasks for each of our respondents are added. Take for example John Smith who is a regular participant. His personal details are is in a table called "tblRespondents" which holds among other things his firstname, lastname and address details. There is a one to many relation ship between "respondents" and "RespondentsTasks".
What we would like to do is the following. Each time we organise a new activity, we will receive a list of potential participants ("Respondents") from an external source. Before we allocate the activity to one or more respondents, we want to check if any of the respondents have taken part in the past by querying the "tblRespondenTasks" table.
The external list would arrive in Excel and might hold the following information:
FirstName
LastName
Postcode
MobilePhone
How do we compare this external list (which I can import in Access to create a temporary table say "tblTaskValidation)" with the "tblRespondentTasks" and return the respondents that appear on both lists. what makes it tricky for us is that we would like to be able to check each field from "tblTaskValidation" against "tblRespondentTasks" as sometimes a respondent might have two different mobile phone numbers but only lives at one address. Or the first name might be mispelled but the mobile phone number would still match etc. So we would like Access to query each of the four field listed above agains the table "tblRespondentTasks". We also don't know at this stage if any of the potential respondents are already on our "tblRespondents". Say for example John Smith is on the Excel list. We would like the query to check if a person called "John Smith" is actually in our table "tblRespondentTasks" by checking his name OR his MobilePhone or his Postcode. We don't mind if we get some "false" returns if we have two participants living in the same postcode area e.g.
Asssume John Smith has RespondentID 37 and Jo Miital has RespondentID 17.
Is it possible to run the "tblTaskValidation" against "tblRespondentTasks", check if we have any of the four potential respondents already on our database and return the tasks they have participated in? We can test each field individually but in an ideal world we would like to "upload" the external excle file, run it against our current database and return every respondent and relating tasks who has taken part in the past. Sorry if we're a bit clumsy on our description of the task ahead of us. Any tips or solution much appreciated.
Added after I posted the above:
tblRespondents has as PK RespondentID
tblRespondentTasks has as PK TaskID and a FK called RespondentID which links the table to tblRespondents
tblRespondentTasks also has another FK called ClientID which is linked to tblClients which hold client specific information
temporary table tblTaskValidation would have an automatic PK allocated and is not linked to any table.
Many thanks