K
kiln
Having defined an enumeration, the VBA editor in Access 2000 shows the
enumerations in an If...End If statement. But I can't get the enum to
appear in a Select Case statement. Why? Dumb example but anyways...
Public Enum NiceNames
nnBilly
nnHank
nnJoan
End Enum
Public Function SayAName(pintIndex as Integer)
' The enum is shown as I type this If...End If
If pintIndex = nnJoan Then
MsgBox "Joan"
End If
' The enum values are not presented by intellisense after typing
the Case line.
Select Case pintIndex
Case nJoan
MsgBox "Joan"
End Select
End Function
enumerations in an If...End If statement. But I can't get the enum to
appear in a Select Case statement. Why? Dumb example but anyways...
Public Enum NiceNames
nnBilly
nnHank
nnJoan
End Enum
Public Function SayAName(pintIndex as Integer)
' The enum is shown as I type this If...End If
If pintIndex = nnJoan Then
MsgBox "Joan"
End If
' The enum values are not presented by intellisense after typing
the Case line.
Select Case pintIndex
Case nJoan
MsgBox "Joan"
End Select
End Function