I have followed the code examples, or so I believe, and everything works EXCEPT, I am no longer able to add records. This is for the Customer Form and the SubForm. Entering Edit Mode does not appear to make any difference. Where should I begin to determine where this error is from? One more item, when I select to add a record without being in edit mode, I get a macro error. Thanks in advance.
Kevin Robertson 2 months ago
Is Allow Additions set to Yes in the property sheet?
Also make sure you didn't put any Me.AllowAdditions=False in your code.
Donald Lader 2 months ago
Ok. I have it working now. I found that if I set the properties to No as shown in the first part of the video, I could not get this to work. When I left them to Yes and then entered the code, it worked fine. A final question; is the Cancel supposed to clear changes in the subform? I think not but just would like to make sure.
Kevin Robertson 2 months ago
The Cancel button won't clear the changes in the Subform as it is on the parent form. As soon as you click the Cancel button the the record is saved to the table so can't be undone.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.