Not sure if this is supposed to go to the VBA forum or this.. but here it goes:
I have a form with a linked subform.
The subform is populating the proper view of the data (filtered on the parent linked field)
Then I add a button on the main form to allow adding a new record for the subform:
Private Sub cmdAddNewRecord_Click()
Me!Sfr_PcsSetBOM.Form.AllowAdditions = True
Me!Sfr_PcsSetBOM.Form.AllowEdits = True
Me!Sfr_PcsSetBOM.SetFocus
DoCmd.GoToRecord , , acNewRec
End Sub
But still it doesn't allow for edit in the record, even after the subform is displaying a new record line
I've checked the main form and subform allowadditions and allowedits.
Also check by going to the subform as it's own window with datasheet view. Manually, I can add the record.
All checked, I still can't add edit the newrecord in the subform from the main form. How should I troubleshoot this problem?
I have a form with a linked subform.
The subform is populating the proper view of the data (filtered on the parent linked field)
Then I add a button on the main form to allow adding a new record for the subform:
Private Sub cmdAddNewRecord_Click()
Me!Sfr_PcsSetBOM.Form.AllowAdditions = True
Me!Sfr_PcsSetBOM.Form.AllowEdits = True
Me!Sfr_PcsSetBOM.SetFocus
DoCmd.GoToRecord , , acNewRec
End Sub
But still it doesn't allow for edit in the record, even after the subform is displaying a new record line
I've checked the main form and subform allowadditions and allowedits.
Also check by going to the subform as it's own window with datasheet view. Manually, I can add the record.
All checked, I still can't add edit the newrecord in the subform from the main form. How should I troubleshoot this problem?