H
Herbert Chan
Hi,
I've just setup a form with the following:
option group named "grpPFF" with 6 options
a command button named "cmdMonthly"
I have the following procedure:
Private Sub cmdMonthly_Click()
Select Case grpPFF
Case Is = 1
MsgBox "TM38"
Case Is = 2
MsgBox "TKO137"
Case Is = 3
MsgBox "KT"
Case Is = 4
MsgBox "SYP"
Case Is = 5
MsgBox "qb"
Case Is = 6
MsgBox "mw"
End Select
End Sub
However, I get execution error 438 with Select Case grpPFF. And I still get
the error even if I replace it with Me.grpPFF.
What have I got wrong? It seemed to be a simple procedure. I'm stumped
Herbert
I've just setup a form with the following:
option group named "grpPFF" with 6 options
a command button named "cmdMonthly"
I have the following procedure:
Private Sub cmdMonthly_Click()
Select Case grpPFF
Case Is = 1
MsgBox "TM38"
Case Is = 2
MsgBox "TKO137"
Case Is = 3
MsgBox "KT"
Case Is = 4
MsgBox "SYP"
Case Is = 5
MsgBox "qb"
Case Is = 6
MsgBox "mw"
End Select
End Sub
However, I get execution error 438 with Select Case grpPFF. And I still get
the error even if I replace it with Me.grpPFF.
What have I got wrong? It seemed to be a simple procedure. I'm stumped
Herbert