For DELETE I have
Private Sub Delete_Insurance_Contact_Click()
On Error GoTo Err_Delete_Insurance_Contact_Click
Me.[Insurance Contacts Subform].SetFocus
RunCommand acCmdDeleteRecord
Exit_Delete_Insurance_Contact_Click:
Exit Sub
Err_Delete_Insurance_Contact_Click:
MsgBox Err.Description
Resume Exit_Delete_Insurance_Contact_Click
End Sub
The error I get is "Microsoft Access cannot find the field "|" referred to
in your expression.
Ofer Cohen said:
What is the problem?
Before running this code, have you set the focus to the sub form?
Me.[SubFormControlName].SetFocus
Your code
--
Good Luck
BS"D
:
I have a form and a subform. The form is bound to a table and the subform to
another table.
I have two buttons that I am trying to code and having troubles:
Duplicate Record (in Subform)
Delete record (in Subform)