Question: What if any is the difference between OrderID and ExpenseID? You use order number in the Me![OrderID] reference, but it isn't in tempLine or Line, so those Insert and Update statements will give you an error.[/QUOTE]
ANSWER: I do not have an OrderID field, only ExpenseID. The order reference I used is Me![ExpenseID]. The field LineExpenseID in the "tempLine" table is linked to ExpenseID field in the "tempExpense" table.
As far as the error in the Line, could I be getting the error because there are more than one row in the "Line" table that is linked to the same ExpenseID? The rows in the Line table are the line items for the order. Wouldn't I have to go through each row in the "tempLine" table and insert them one by one to the "Line" table?