Option Compare Database
Private Sub AddRecord_Click()
On Error GoTo Err_AddRecord_Click
DoCmd.GoToRecord , , acNewRec
Exit_AddRecord_Click:
Exit Sub
Err_AddRecord_Click:
MsgBox Err.Description
Resume Exit_AddRecord_Click
End Sub
[/b]
-----
Your code
Dim varName As Variant
varName = Me.SalesExec
DoCmd.GoToRecord , , acNewRec
If Me.chkLock = True Then
Me.SalesExec = varName
End If
When you click on 'add record', the code will look to see if the check box is checked. If checked, it will update the SalesExec drop down in the new record to whatever the value was in the last record. I dont understand how your code will update the SalesExec field in the new record though. How to I incorporate that code in with the Add Record code?