select case problems

  • Thread starter Thread starter Jesper Fjølner
  • Start date Start date
J

Jesper Fjølner

I wan't to do evaluate a number with < and > - is this possible?
Or do I have to nest a If-then in there somewhere?

Select Case AgeGroup
Case Is < 39
AgeGroup= 1
Case Is > 39 AND <50 'fails here - how is this done?
AgeGroup= 2
Case Is > 49
AgeGroup= 3
End Select
 
Select Case agegroup
Case Is < 39
agegroup = 1
Case 39 To 50
agegroup = 2
Case Is > 50
agegroup = 3
End Select
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top