Solved Main form edits allowed on subform click

mjdemaris

Working on it...
Local time
Today, 15:37
Joined
Jul 9, 2015
Messages
426
Hello all,

I just came across an interesting situation. I open a record form from a list of records, opening it using the docmd method and setting as read only.

In the Load event, I disable the subforms until the Edit button is clicked. However, I found out that if I click on the subform, then I can edit the main form's controls and change the data.

Have you seen this before and how would I address this issue?

Thank you,
Mike
 
on load event Locked all controls on the main form
except the buttons for edit/new, etc.
 
If you don't want the main form to allow edits, set its AllowEdits property to No.
 

Users who are viewing this thread

Back
Top Bottom