When i copy data form to multiple form i get a "Run-time error 3021. No current record " in the line "rst2.MoveLast" ...Can you help me out...
Code:
Private Sub Process_AfterUpdate() Dim db As DAO.Database Dim rst11 As DAO.Recordset Dim rst10 As DAO.Recordset Dim rst9 As DAO.Recordset Dim rst8 As DAO.Recordset Dim rst7 As DAO.Recordset Dim rst6 As DAO.Recordset Dim rst5 As DAO.Recordset Dim rst4 As DAO.Recordset Dim rst3 As DAO.Recordset Dim rst2 As DAO.Recordset Dim rst1 As DAO.Recordset Set rst11 = Forms!frm_BIA!frm_jobtraing.Form.RecordsetClone Set rst10 = Forms!frm_BIA!frm_Vtlrcrd.Form.RecordsetClone Set rst9 = Forms!frm_BIA!frm_off_telrequ.Form.RecordsetClone Set rst8 = Forms!frm_BIA!frm_othrasset.Form.RecordsetClone Set rst7 = Forms!frm_BIA!frm_sffreq.Form.RecordsetClone Set rst6 = Forms!frm_BIA!frm_essintrcntrct_con.Form.RecordsetClone Set rst5 = Forms!frm_BIA!frm_mnulprcdre.Form.RecordsetClone Set rst4 = Forms!frm_BIA!frm_resorcsrequrmnt.Form.RecordsetClone Set rst3 = Forms!frm_BIA!frm_endtoendprcs.Form.RecordsetClone Set rst2 = Forms!frm_BIA!frm_prcscrticl_crtria_crtocatybase.Form.RecordsetClone Set rst1 = Forms!frm_BIA!frm_SignOff.Form.RecordsetClone 'find the current record 'rst1.FindFirst "ID = " & Me.ID rst2.MoveLast Do While Not rst2.EOF If rst2.AbsolutePosition = rst1.AbsolutePosition Then rst2.Edit rst2!Process = Me.Process rst2.Update rst3.Edit rst3!Process = Me.Process rst3.Update rst4.Edit rst4!Process = Me.Process rst4.Update rst5.Edit rst5!Process = Me.Process rst5.Update rst6.Edit rst6!Process = Me.Process rst6.Update rst7.Edit rst7!Process = Me.Process rst7.Update rst8.Edit rst8!Process = Me.Process rst8.Update rst9.Edit rst9!Process = Me.Process rst9.Update rst10.Edit rst10!Process = Me.Process rst10.Update rst11.Edit rst11!Process = Me.Process rst11.Update Exit Do Else rst2.MoveNext rst3.MoveNext rst4.MoveNext rst5.MoveNext rst6.MoveNext rst7.MoveNext rst8.MoveNext rst9.MoveNext rst10.MoveNext rst11.MoveNext End If Loop rst1.Close rst2.Close rst3.Close rst4.Close rst5.Close rst6.Close rst7.Close rst8.Close rst9.Close rst10.Close rst11.Close Set rst1 = Nothing Set rst1 = Nothing End Sub
Comment