turning string month into number

S

Santiago Gomez

Hello,
I have a combo box with the months January, February, etc.
Is there an easy way of converting that value into month numbers so I can
use it with a For Loop?
thanks
 
D

DanK

Another way would be to have a second column that is zero
inches long and in it is the corresponding month number,
ie:

January 1
February 2
March 3
etc.

Then, use the data in the second column in your loops.
 
S

Santiago Gomez

that worked perfectly. I had created a Select statement 20 lines to do what
you did in 1 line.
thanks.

the hidden column would have worked, but I was using that value in other
places and did not want to change it everywhere.
 
K

Ken Snell

You're welcome.

Santiago Gomez said:
that worked perfectly. I had created a Select statement 20 lines to do what
you did in 1 line.
thanks.

the hidden column would have worked, but I was using that value in other
places and did not want to change it everywhere.
 

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

Top