G
Guest
Hi there...
Im looking to insert records into an Access table and then with the
resulting AutoInc ID instert further records into a child table. How do I
determine the ID of the Master tables to relate the child table?
<pseudocode>
SQL: INSERT INTO head_table (X, Y) VALUES (1, 2)
For i = 1 to 30
?? get result from inserted record ??
SQL: INSERT INTO line_table (HEADID, Z) VALUES (head_table.ID, 3)
Next
<end>
Something like that... cheers for any assistance...
Im looking to insert records into an Access table and then with the
resulting AutoInc ID instert further records into a child table. How do I
determine the ID of the Master tables to relate the child table?
<pseudocode>
SQL: INSERT INTO head_table (X, Y) VALUES (1, 2)
For i = 1 to 30
?? get result from inserted record ??
SQL: INSERT INTO line_table (HEADID, Z) VALUES (head_table.ID, 3)
Next
<end>
Something like that... cheers for any assistance...