R
Rob
Hello,
Can someone help me with Select Case statement?
I have form with text box (named txtEligible) that is
bound to certain field in a table. The User may have to
update the text box.
For varying reasons, I need to use VBA to limit what the
user can put in the text box. If the user does not enter
one of following: yes no dif add then I want message box
to appear. But I cant get the Select Case statement to
work. Below is the code. Can someone help. Thanks.
strcmbESDStaff = txtEligible
Select Case strcmbESDStaff
Case "yes"
Case "no"
Case "dif"
Case "add"
Case Else
strMSG = msgbox("Must enter one of the
following: yes no dif add.")
'End Select
Can someone help me with Select Case statement?
I have form with text box (named txtEligible) that is
bound to certain field in a table. The User may have to
update the text box.
For varying reasons, I need to use VBA to limit what the
user can put in the text box. If the user does not enter
one of following: yes no dif add then I want message box
to appear. But I cant get the Select Case statement to
work. Below is the code. Can someone help. Thanks.
strcmbESDStaff = txtEligible
Select Case strcmbESDStaff
Case "yes"
Case "no"
Case "dif"
Case "add"
Case Else
strMSG = msgbox("Must enter one of the
following: yes no dif add.")
'End Select