R
Rob
I would like a common subroutine to check for a value in
one control and then lock or unlock another control. My
approach, which didn't work, was to pass the control as a
parameter:
Private Sub AddCPT_GotFocus()
CheckROP AddCPT
End Sub
Private Sub CheckROP(pObject As Control)
If IsNull(Decision.Value)Then
pObject.Value = Null
pObject.Locked = True
Else
pObject.Locked = False
End If
End Sub
This Access 2K code is my ideal state. Is there a fix to
what I have attempted or another way to do it?
TIA,
Rob
one control and then lock or unlock another control. My
approach, which didn't work, was to pass the control as a
parameter:
Private Sub AddCPT_GotFocus()
CheckROP AddCPT
End Sub
Private Sub CheckROP(pObject As Control)
If IsNull(Decision.Value)Then
pObject.Value = Null
pObject.Locked = True
Else
pObject.Locked = False
End If
End Sub
This Access 2K code is my ideal state. Is there a fix to
what I have attempted or another way to do it?
TIA,
Rob