jvantassel1
asked on
Select case
I'm trying to use a case statement in MS Access adp to produce an error if the value is any number other than 4,5,6,7,8
Here's what I was trying, but it doesn't work.
Any help is appreciated.
Select Case Me.cboDescriptionType
Case Not 4 - 8
Me.lblError_NotUpdateable. Visible = True
boolError = True
End Select
Here's what I was trying, but it doesn't work.
Any help is appreciated.
Select Case Me.cboDescriptionType
Case Not 4 - 8
Me.lblError_NotUpdateable.
boolError = True
End Select
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Personally, I think it makes code clearer to drop the "Me." prefix - you don't need it.
ASKER
Here's the code that doesn't work.
Select Case Me.cboDescriptionType
Case Not 4 - 8
Me.lblError_NotUpdateable.
boolError = True
End Select