S
Stacey Crowhurst
Hi. I would like to use the duplicate record funciton for several of my
forms. The problem I am facing is how to adjust when I have required fields
in my forms. For example I get this error...
Run-Time Error 3314
The field 'tblPotentialChangeOrders.pcoPCOID' cannot contain a Null value
becuase the Required property for this field is set to True. Enter a value
in this field.
How do I get around this issue without changing my table properties? Here
is the code on my Copy Record command button (from the wizard):
Private Sub cmdCopyRecord_Click()
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
Exit_cmdCopyRecord_Click:
Exit Sub
End Sub
Any help is greatly appreciated. Thank you!
Stacey
forms. The problem I am facing is how to adjust when I have required fields
in my forms. For example I get this error...
Run-Time Error 3314
The field 'tblPotentialChangeOrders.pcoPCOID' cannot contain a Null value
becuase the Required property for this field is set to True. Enter a value
in this field.
How do I get around this issue without changing my table properties? Here
is the code on my Copy Record command button (from the wizard):
Private Sub cmdCopyRecord_Click()
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
Exit_cmdCopyRecord_Click:
Exit Sub
End Sub
Any help is greatly appreciated. Thank you!
Stacey