K
Kirk P.
I have a form (frmCustomers) and a subform (sfrmRevenue). When the form
opens, I have code that moves the focus to sfrmRevenue and allows only new
records to be added. I have a command button called Edit Details on the
Customer form. When clicked, I would like the user to be able to edit any
records in the subform. The button doesn't work - it's not placing the
subform in Edit mode. Here's the code:
Me![sfrmRevenue].SetFocus
Me![sfrmRevenue].Form.AllowEdits = True
Is there something wrong with the code?
opens, I have code that moves the focus to sfrmRevenue and allows only new
records to be added. I have a command button called Edit Details on the
Customer form. When clicked, I would like the user to be able to edit any
records in the subform. The button doesn't work - it's not placing the
subform in Edit mode. Here's the code:
Me![sfrmRevenue].SetFocus
Me![sfrmRevenue].Form.AllowEdits = True
Is there something wrong with the code?