Disable the update on subform if field is not..

calvinle

Registered User.
Local time
Yesterday, 21:06
Joined
Sep 26, 2014
Messages
332
Hi,

I wonder if anyone can help me out on this.

I have a main form and 2 subform. The first subform has a field for %. And the 2nd subform has series of checkbox (Checklist or error made by the student)

Because every checkbox will lower the mark from 100 to x points per checkbox.

So, I want that, if the field is not set to 100 yet, then they will not be able to check any box in the subform.

I tried, before update of the subform, etc, but none work properly.
 
I would use conditional formatting for each checkbox to disabled if the % control is not completed, referring to the value in the % field. You haven't provided any names so assuming as described in your post then it would be something like this

Expression is...Parent.%subformname.%controlname<>100 - and set the format to disabled (the option on the right)
 
Lock the subform on the main form Load (startup), OnCurrent (moving to a new record) and AfterUpdate (after <controlname> is updated) events based up the <controlname> value.
 
I would use conditional formatting for each checkbox to disabled if the % control is not completed, referring to the value in the % field. You haven't provided any names so assuming as described in your post then it would be something like this

Expression is...Parent.%subformname.%controlname<>100 - and set the format to disabled (the option on the right)

The checkbox are from the record field. There is no conditional format for the field.
 

Users who are viewing this thread

Back
Top Bottom