Forms!Your_Form.Form!Your_Field
Forms!Your_Form.Form!Your_Unique_ID_Field
[code]
Note: If this is an Autonum field, you'd want to leave "Append To" blank, as you don't actually want this number to go into your destination table.
Alright, so that takes care of the query. Now, to call this query from code, you would write the following behind the form:
[code]
Your_Command_Button_OnClick()
DoCmd.OpenQuery "The_Name_Of_Your_Append_Query", acViewNormal, acEdit
End Sub
And it should work!