Kckronic21
Programmer
I have the folling code in my Form:
Private Sub Message_Coomand_Button Click()
Dim Agetxtbox
Select Case Agetxtbox
Case 18
Messagetxtbox = "You are old enough to vote"
Case 21
Messagetxtbox = "You are old enough to drink"
Case 65
Messagetxtbox = "You are old enough to retire"
End Select
End Sub
This code will not work. Can someone please tell me what I am doing wrong? Thanks!
Private Sub Message_Coomand_Button Click()
Dim Agetxtbox
Select Case Agetxtbox
Case 18
Messagetxtbox = "You are old enough to vote"
Case 21
Messagetxtbox = "You are old enough to drink"
Case 65
Messagetxtbox = "You are old enough to retire"
End Select
End Sub
This code will not work. Can someone please tell me what I am doing wrong? Thanks!