DOMINIC KENBUNGO
New member
- Local time
- Today, 11:15
- Joined
- Jan 4, 2021
- Messages
- 10
Hi all. A form is designed with button disabled using the form's ONLOAD EVENT. I need to ENABLE this button using the AGE value computed in textbox TEXT11 if the age value is between 18 and 35. I have tried this but it doesn't work.
Private Sub Form_Current()
If Text11.Value < 18 Then
Command14.Enabled = False
Else
Command14.Enabled = True
End If
End Sub
Private Sub Form_Load()
Command14.Enabled = False
End Sub
The database is attached here.If Text11.Value < 18 Then
Command14.Enabled = False
Else
Command14.Enabled = True
End If
End Sub
Private Sub Form_Load()
Command14.Enabled = False
End Sub