Change Check Box if Data Present

fenhow

Registered User.
Local time
Today, 10:57
Joined
Jul 21, 2004
Messages
599
Hi,

Is there a way to change the value of a check box when data is added to a field automaticlly?

Default state of the chkBox is unchecked, default state of field is null. If I add anything to the field I want the chkBox to be checked..

Thanks.

Fen How
 
It sounds like the checkbox is unnecessary, since you can simply check the state of the field. I wouldn't have it. In any case, in the update event of the control:

Code:
If Nz(Me.ControlName, "") = "" Then
  Me.Checkbox = False
Else
  Me.Checkbox = True
End If
 
Thanks Paul.

Fen
 
Hi, sorry in the before update or after update and does this go in the checkbox or the field that will change triggering the change?

Fen
 
After update of the field triggering the change. But I still wouldn't have the checkbox. ;)
 

Users who are viewing this thread

Back
Top Bottom