Hello,
I am using MS Access 2003 to create an inventory and ordering database. After an order is processed I disable that order by setting the main form's Allow Edits property to false. This effectively prevents the user from changing the details of the order.
The problem shows up when the user gets to a order that has not been processed. The main form is unlocked for the user to edit but the subform and all the controls on the subform remain unusable.
I need to know how to set the subform's allowedits propoerty in code.
Here is what I thought would work but apparently it does not:
Forms![Add an Order and Details].[Order_Details_S ubform].AllowEdits = True
Does anyone know how to change the AllowEdits property on a subform? I am trying to do this in the Form_Current() event, in an if statement that evaluates a control on the main form. If the control holds a certain value then AllowEdits on the main form is set to true or false.
Any help is appreciated. Thanks.
I am using MS Access 2003 to create an inventory and ordering database. After an order is processed I disable that order by setting the main form's Allow Edits property to false. This effectively prevents the user from changing the details of the order.
The problem shows up when the user gets to a order that has not been processed. The main form is unlocked for the user to edit but the subform and all the controls on the subform remain unusable.
I need to know how to set the subform's allowedits propoerty in code.
Here is what I thought would work but apparently it does not:
Forms![Add an Order and Details].[Order_Details_S ubform].AllowEdits = True
Does anyone know how to change the AllowEdits property on a subform? I am trying to do this in the Form_Current() event, in an if statement that evaluates a control on the main form. If the control holds a certain value then AllowEdits on the main form is set to true or false.
Any help is appreciated. Thanks.
Comment