A family of Microsoft relational database management systems designed for ease of use.
mySubformControlName.Form.DataEntry = Not mySubformControlName.Form.DataEntry
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All,
I am creating a 2010 database. I have a main form and a subform. I'd like to change the "Data Entry" property of the subform from "Yes" to "No" using code when I click a button on the main form. For the life of me I can't work out how to modify the subform properties from the main form.
Can anyone help??
Stefanos
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
mySubformControlName.Form.DataEntry = Not mySubformControlName.Form.DataEntry
While Tom answered you, I question the value of doing so. The main purpose of a subform is to display records related to the main form. So I can't see why you would set the Data Entry property of a subform to Yes in the first place. If you don't want users to edit existing records, then set the Allow Edits property to No.