G
Guest
Good afternoon,
I need a little clarification with regards to subforms and disabling controls.
I have a main form with a subform. If a user checks a checkbox on the main
form I need the subform and its controls to be disabled. However, I receive
an error when the user selects a control on the subform and then navigates to
a new record.
You can’t disable a control while it has the focus
The first line in my sub routine changes the focus to a control on my main
form which is always active. I do not understand why I keep getting this
message?
What is the proper approach to disabling controls?
In another message someone suggested creating a dumbmy control to set focus
on? If this is the proper approach my doesn't my 1st line of code work then?
Thank you,
Daniel
I need a little clarification with regards to subforms and disabling controls.
I have a main form with a subform. If a user checks a checkbox on the main
form I need the subform and its controls to be disabled. However, I receive
an error when the user selects a control on the subform and then navigates to
a new record.
You can’t disable a control while it has the focus
The first line in my sub routine changes the focus to a control on my main
form which is always active. I do not understand why I keep getting this
message?
What is the proper approach to disabling controls?
In another message someone suggested creating a dumbmy control to set focus
on? If this is the proper approach my doesn't my 1st line of code work then?
Thank you,
Daniel