I have a form that allows users to enter data.
There will be times where these records will be duplicated except for one field. That field is called 'Hull'. I have a checkboxes included for each option of Hull. We'll call them 'Hull1', 'Hull2', 'Hull3', 'Hull4', 'Hull5', 'Hull6'. The Idea is when the user is entering the information, he may enter Hull1 in the 'Hull' field, but it may also be used for 'Hull2', 'Hull4', 'Hull6' - so when he clicks on the checkboxes for 'Hull2', 'Hull4', 'Hull6', the record will duplicate, change the value 'Hull', and append to the table. This is the code I came up with, but it's not working correctly.
Private Sub Check120_AfterUpdate()
If Check120 = "-1" Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
Me.Hull = "Hull2"
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70
End If
End Sub