I am amending an existing system.
There is a sub form FoPenSubOrder that is used on several forms.
On one form there is an unlock button to allow amendments to the sub form. The main form is called foPenOrder. The code for allowing amendments is in the click event for a command button
DoCmd.Save acForm, "foPenOrder"
[FoPenSubOrder].Form.AllowEdits = True
[FoPenSubOrder].Form.AllowDeletions = True
[FoPenSubOrder].Form.AllowAdditions = True
This works fine.
I am attempting to do the same in another form , foPenOrderAndPayments.
I have created a command button and in the click event I have the following code which is the same as above except for the DoCmd.Save bit
DoCmd.Save acForm, "foPenOrderAndPayments"
[FoPenSubOrder].Form.AllowEdits = True
[FoPenSubOrder].Form.AllowDeletions = True
[FoPenSubOrder].Form.AllowAdditions = True
This doesn't work. any ideas why?
There is a sub form FoPenSubOrder that is used on several forms.
On one form there is an unlock button to allow amendments to the sub form. The main form is called foPenOrder. The code for allowing amendments is in the click event for a command button
DoCmd.Save acForm, "foPenOrder"
[FoPenSubOrder].Form.AllowEdits = True
[FoPenSubOrder].Form.AllowDeletions = True
[FoPenSubOrder].Form.AllowAdditions = True
This works fine.
I am attempting to do the same in another form , foPenOrderAndPayments.
I have created a command button and in the click event I have the following code which is the same as above except for the DoCmd.Save bit
DoCmd.Save acForm, "foPenOrderAndPayments"
[FoPenSubOrder].Form.AllowEdits = True
[FoPenSubOrder].Form.AllowDeletions = True
[FoPenSubOrder].Form.AllowAdditions = True
This doesn't work. any ideas why?
Last edited: