ajking
Technical User
- Aug 13, 2002
- 229
Probably a basic question but I importing 3 excel sheets(Cust, tech, survey) into access tables "Customer", "TempTechnical", "TempSurvey". The excel workbook comes in from multiple locations and, once imported,it is deleted.
I have sorted out the import using VBA. this works fine.
The Access table "Customer" has an autonumber field [cust_ID]which then becomes the main record. My aim is to link the main record with the other two records
I am using DLookup to get the newly created Customer Record.
I have looked at a few scenarios and I keep coming back to creating two permanent tables "Technical" and "Survey", each with identical fields to their 'Temp' counterparts but with an extra [ID] field. I would then populate these [ID] fields with the value from the Dlookup. The final steps would be to copy over the data from the "TempTechnical" and "TempSurvey" tables and then delete the data from the 'Temp' tables ready for the next Import. But I am having a problem working out how to do this. Does anyone have suggestions how to do this? or perhaps a more elegant solution. TIA
'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
I have sorted out the import using VBA. this works fine.
The Access table "Customer" has an autonumber field [cust_ID]which then becomes the main record. My aim is to link the main record with the other two records
I am using DLookup to get the newly created Customer Record.
I have looked at a few scenarios and I keep coming back to creating two permanent tables "Technical" and "Survey", each with identical fields to their 'Temp' counterparts but with an extra [ID] field. I would then populate these [ID] fields with the value from the Dlookup. The final steps would be to copy over the data from the "TempTechnical" and "TempSurvey" tables and then delete the data from the 'Temp' tables ready for the next Import. But I am having a problem working out how to do this. Does anyone have suggestions how to do this? or perhaps a more elegant solution. TIA
'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980