I'm trying to create a "template" form where the user can duplicate a set of records but modify a certain number of fields. for example, PC1 exists in the database and has 35 parts related to it. the user wants to be able to create a new pc, PC2, with the same 35 parts. instead of inputting each part individually i want the user to be able to create PC2 based off of PC1 but renaming it PC2 and changing who the "record updater" is for that pc. the steps i got planned are:
1. Duplicate and Append records to Temporary Table
2. Update records in temporary table based on user input.
3. Append results to main table
4. Delete records in Temporary table.
i have step one complete using an append query, but im stuck on the update query for step 2. the SQL im using for the update query is
theres a pop-up form "frmUpdateTempTable" where the user selects the updater for the new set of records (cboUpdater) and types in the assembly number (txtAssemblyNumber). The record on this form is supposed to be saved to the table "tblTopAssembly" first then the the value typed in txtAssemblyNumber is passed to the records in tblTemporary. the updater is passed correctly, but the Assembly number isnt. the value stored in the temporary table for assembly number is the AutoNumber ID that corresponds to the AssemblyNumber that the user typed in. Any suggestions on how to successfully pass this value to tblTemporary or notes on whats wrong with my SQL? thanks in advanceCode:UPDATE tblTemporary SET tblTemporary.AssemblyNumber = DLookUp("ID","tblTopAssembly","AssemblyNumber"=forms!frmUpdateTempTable!txtAssemblyNumber), tblTemporary.Updater = [Forms]![frmUpdateTempTable]![cboUpdater];