I have code (below) which works perfectly today attached to a button to copy a record in a form. But, it inserts the new record at the bottom of the form, I would like to make it past the new record immediately below the copied record. Is there a way to do this?
Private Sub Duplicate_Record_Click() On Error GoTo Err_Duplicate_Record_Click DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append Exit_Duplicate_Record_Click: Exit Sub Err_Duplicate_Record_Click: MsgBox Err.Description Resume Exit_Duplicate_Record_Click
End Sub
Software/Hardware used:
MS Access
ASKED:
January 20, 2010 3:20 PM
UPDATED:
January 21, 2010 2:14 PM