Solved Main form edits allowed on subform click (1 Viewer)

mjdemaris

Working on it...
Local time
Today, 02:01
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
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 17:01
Joined
May 7, 2009
Messages
19,232
on load event Locked all controls on the main form
except the buttons for edit/new, etc.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 05:01
Joined
Feb 19, 2002
Messages
43,223
If you don't want the main form to allow edits, set its AllowEdits property to No.
 

Users who are viewing this thread

Top Bottom