Tom, will your air code copy from one table/form to another table/form. I'm
not very experienced with code like this, but need a solution for the above
scenario.
I tried to modify your code, but it threw an 'Object Required 424' error on
the 'Set rsFrom' line in the code below:
My full code:
Private Sub btn_Reveal_Run_Timer_Click()
'On Error GoTo Proc_Err
Dim rsFrom As dao.Recordset
Dim rsTo As dao.Recordset
'set rsFrom = Currentdb.OpenRecordset(...)
Set rsFrom = db.OpenRecordset("Select
me.frm_Run_Reveal_Selector.Run_waypoint from tbl_Run_Reveal_Selector where
[Run_No]=" & Forms!frm_Runs![Run_No] & " order by [Run_waypoint_List_ID];",
dbOpenForwardOnly)
Set rsTo = db.OpenRecordset("Select [Run_waypoint] from
tbl_Run_Reveal_Target where [Run_No]=" & lngRunNo & " order by
[Run_waypoint_List_ID];", dbOpenForwardOnly)
'set rsTo = Currentdb.OpenRecordset(...)
While Not rsFrom.EOF
rsTo.AddNew
rsTo!Run_waypoint = rsFrom!Run_waypoint
rsTo!Run_Direction = rsFrom!Run_Direction
' rsTo!SomeField = rsFrom!SomeField
' rsTo!OtherField = rsFrom!OtherField
'etc.
rsTo.Update
rsFrom.MoveNext
Wend
Todo: Close objects
End Sub