Quote:
Originally Posted by oMADMANo
when I used that code when I select or de-select the tick box it does nothing (including no error). the tick box has a yes/no property and default is zero so I tried using the value of 1 and 2 but still didn't work. I think that code could work but something must be wrong.
|
A checkBox in Access (what you name a "tick box") can only have two values:
True (= -1) when it is "ticked" (i.e. a check mark is visible) and
False (= 0) when it is not "ticked". It can also be
Null (which is not a value) when it is greyed. Testing for any other values is meaningless, although any non-zero value can be considered as True.
Please post an exact copy of the code for the Sub procedure "
RiskAssesment_AfterUpdate()" as it is in your database.