Using VBA and ADO/recordset's and/or queries, I need to update 3 related master tables from 3 unrelated temp tables. Can someone please show me how.
I 've been away from Access for some time and appreciate your input. I have 3 tables a main with (CAMERAID), 2nd table TESTS with (TESTID, and foreign with CAMERAID) and 3rd table TESTS_RESULTS with(TEST_RESULTSID, and foreign with TESTID for multiple records in the TEST_RESULTS table.
I created the three temp tables from DoCmd Spreadsheet for the Excel workbook containing the original data.
Below are the 3 table structures:
Cameras Table:
CameraID primary/autonumber
Barcode
Vendor
Model
Type
Video Format
Imager
Band
Voltage
Comments
PicturePath
Seq
Tests Table:
TestID primary/autonumber
CameraID
other field
other field
other field
other field
Tests_Results Table:
Tests_ResultsID primary/autonumber
TestID
other field
other field
other field
--------------------------------------------------------------------------------
I have successfully appended data into the main table (Cameras). Can someone show me, using ADO/recordset how to automate the append process and apply the Camera's primary/key to the second table Tests as a foreign key after I append data to the Tests table. Please help someone. Thank you.
I 've been away from Access for some time and appreciate your input. I have 3 tables a main with (CAMERAID), 2nd table TESTS with (TESTID, and foreign with CAMERAID) and 3rd table TESTS_RESULTS with(TEST_RESULTSID, and foreign with TESTID for multiple records in the TEST_RESULTS table.
I created the three temp tables from DoCmd Spreadsheet for the Excel workbook containing the original data.
Below are the 3 table structures:
Cameras Table:
CameraID primary/autonumber
Barcode
Vendor
Model
Type
Video Format
Imager
Band
Voltage
Comments
PicturePath
Seq
Tests Table:
TestID primary/autonumber
CameraID
other field
other field
other field
other field
Tests_Results Table:
Tests_ResultsID primary/autonumber
TestID
other field
other field
other field
--------------------------------------------------------------------------------
I have successfully appended data into the main table (Cameras). Can someone show me, using ADO/recordset how to automate the append process and apply the Camera's primary/key to the second table Tests as a foreign key after I append data to the Tests table. Please help someone. Thank you.