Select case
I wrote the below but the second case does not execute for something like say, 1201. I was hoping for any insight. Please advise. This fragment appears in the format event of a header of a report grouped upon code.
Select Case code
'directors & sal coord...
Case 1100, 1200, 1300, 1400, 1500
Me.RegionDescription = DLookup("regionDescription", "Region", "code=" & code)
'managers...
Case Not (Right(code, 2)) = 99, Not (Right(code, 2)) = "00", Not (code) > 1599
Me.RegionDescription = DLookup("regionDescription", "Region", "code=" & code)
'others...
Case Is > 1599
End Select
[This message has been edited by arage (edited 03-20-2002).]
I wrote the below but the second case does not execute for something like say, 1201. I was hoping for any insight. Please advise. This fragment appears in the format event of a header of a report grouped upon code.
Select Case code
'directors & sal coord...
Case 1100, 1200, 1300, 1400, 1500
Me.RegionDescription = DLookup("regionDescription", "Region", "code=" & code)
'managers...
Case Not (Right(code, 2)) = 99, Not (Right(code, 2)) = "00", Not (code) > 1599
Me.RegionDescription = DLookup("regionDescription", "Region", "code=" & code)
'others...
Case Is > 1599
End Select
[This message has been edited by arage (edited 03-20-2002).]