Link to home
Start Free TrialLog in
Avatar of ForrestGump999999
ForrestGump999999

asked on

UNLOCK control using CHECKBOX

Want to have a CHECKBOX (completed task) and if checked, another field (Date) can be unlocked to fill in.  If not, date field cannot be filled in.
Avatar of mgrattan
mgrattan

In the Checkbox's AfterUpdate event:

Private Sub Checkbox1_AfterUpdate()
   Select Case Checkbox1
      Case True
         Me!Date.Enabled = False
         Me!Date.Locked = True
      Case False
         Me!Date.Enabled = True
         Me!Date.Locked = False
   End Select
End Sub
ASKER CERTIFIED SOLUTION
Avatar of JohnPeters7
JohnPeters7

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ForrestGump999999

ASKER

Works fine... thxs!