Suppose I have two tables: Table1 and TableLog. Table1 has some fields like ID(autonumber),Field1,Field2, etc. For this table, there is an append query "AddDetails" which takes the values of Field1,Field2,etc as parameters, and appends a record accordingly.
Now, I am required to store information about the update in the table TableLog. So I have a separate append query AddLog, which takes in the ID of the record (which has been added to Table1 by AddDetails) as a parameter, and stores the corresponding information in TableLog.
I want to combine these two queries ( along with some other independent actions) . For this I'll need to pass the ID of the record created by AddDetails to AddLog. How can I do it? I cant use the "On insert" feature as Table1 is a part of another database, and I have imported a link to it.