Hello I havent been able to put this question into the right words so I will be using an example.
I have 2 tables: "MasterList","RawData".
MasterList has a field 'ProjectID' with unique identifiers (say about 100) for various projects.
RawData uses ProjectID as a foreign key so any record inserted into RawData must have a key that exists in ProjectID.MasterList or the record will drop.
Now I am using a VBA/Queries to import a formated .csv file into my RawData table. My .csv starts with 1000 records but I wind up importing 900. The missing queries are due to ProjectIDs that do not exist in the "MasterList".
My Question(Finally): Is there a way to somehow grab the records that are automatically being dropped by access? I would then print these values out for the user to know so the new ProjectIDs may be added to the "MasterList"
My current solution would be to just use a Distinct SELECT Query on the .csv data (imported to a temp table) and compare the ProjectIDs.csv with the ProjectIDS.Masterfile before starting the import; however, I was wondering if there was a more creative solution to this anyone can share?
Note: My knowledge of SQL says no but I am suprised every day with the stuff people come up with.