Solved Troubleshooting Subform (1 Viewer)

jamesave

Member
Local time
Today, 06:41
Joined
Apr 26, 2020
Messages
36
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?
 
Does the main form also go to a new record or just the subform?
 
I tried to see what's going on with your forms, but it's taking too long, so I decided to test it with a new form, which seems to work. My guess is maybe your form got corrupted. Just my 2 cents...
 

Attachments

Users who are viewing this thread

Back
Top Bottom