Probably an easy fix for someone with a little more experience.
I have a continuous form that I designed as a subform. I have a "copy record" button at the bottom. When I open the form by it's self the button works perfectly. When I open the main form and click the copy button in the sub form it just creates a blank new record. The code for the button is this:
Any ideas how to make it work as a subform?
I have a continuous form that I designed as a subform. I have a "copy record" button at the bottom. When I open the form by it's self the button works perfectly. When I open the main form and click the copy button in the sub form it just creates a blank new record. The code for the button is this:
Code:
Private Sub Command32_Click()
On Error GoTo Err_Command32_Click
DoCmd.RunCommand acCmdSaveRecord
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
Me.Requery
Exit_Command32_Click:
Exit Sub
Err_Command32_Click:
MsgBox Err.Description
Resume Exit_Command32_Click
End Sub
Any ideas how to make it work as a subform?