It needs to take the current record displayed on the form from Table1
and append it Table2 THEN DELETE crrent record from Table1.
' make sure the database is up to date
'
docmd.runcommand acSaveRecord
' copy the record to the new table: this is a
' plain & simple insert query
'
' I'm pretending that field One is the primary key and
' it's a numeric value. YMMV
'
jetSQL = "insert into table2 (field1, field2, field3) " & _
"select one, two, three from table1 " & _
"where one = " & me.txtFieldOne.Value
' carry it out
'
currentDB().Execute jetSQL, dbFailOnError
' now delete the current record
'
jetSQL " delete from table1 " & _
"where one = " & me.txtFieldOne.Value
' and carry it out
'
currentDB().Execute jetSQL, dbFailOnError
' do something sensible with the form
' because you don't want it left on a deleted record
'
DoCmd.RunCommand acMoveNext
Meanwhile, I strongly suspect a design problem: it's not usually a Good
Thing even to have two tables with the same field structure.
Hope that helps
Tim F