You state at the outset you are getting the Access command, which means you are trying to enter a new record in a related table, which needs to be added separately first.
I have some code from some of our good friends here (Pat Cowley, Fornation, Jack Cowley and Doug) which shows me :
"IF J Bloggs and deptcode already in system don't enter twice." This is:
Private Sub Combo143_BeforeUpdate(Cancel As Integer)
If Not IsNull(DLookup("[Inits]", "GOVDOUG", "[Inits]= '" & Me![Inits] & "' And [Surname] = '" & Me![Surname] & "' And [DeptCode] = '" & Me![Deptcode] & "'")) Then
Beep
MsgBox "That full name and Deptcode already exists"
End If
Deptcode_Exit:
Exit Sub
Deptcode_Err:
MsgBox Error$
Resume Deptcode_Exit
End Sub
This is one check!
Any advanced users reading this who could help me add a function which will take me to the first instance of this record so the user can update the original??