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 programmatically 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.BATCHVALFROZEN = -1 Or IsNull(Me.EXP_TYPE) Then
Me.BATCHVAL.Locked = True
Else
Me.BATCHVAL.Locked = False
End If
End Sub
Is there a better way to do this?
Thanks,
Stephan