Hi,
I'm using Access 2002 and this is my question:
I've got a form in datasheet view containing a checkbox. I want to
lock/unlock this checkbox programmaticall y dependent on the value of a
another control. I've tried it like this, but the checkbox does not
seem to be set always correctly:
Private Sub Form_Current()
If Me.BATCHVALFROZ EN = -1 Or IsNull(Me.EXP_T YPE) Then
Me.BATCHVAL.Loc ked = True
Else
Me.BATCHVAL.Loc ked = False
End If
End Sub
Is there a better way to do this?
Thanks,
Stephan
I'm using Access 2002 and this is my question:
I've got a form in datasheet view containing a checkbox. I want to
lock/unlock this checkbox programmaticall y dependent on the value of a
another control. I've tried it like this, but the checkbox does not
seem to be set always correctly:
Private Sub Form_Current()
If Me.BATCHVALFROZ EN = -1 Or IsNull(Me.EXP_T YPE) Then
Me.BATCHVAL.Loc ked = True
Else
Me.BATCHVAL.Loc ked = False
End If
End Sub
Is there a better way to do this?
Thanks,
Stephan
Comment