Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Integer Values To Months 1

Status
Not open for further replies.

mattygriff

Programmer
May 14, 2001
350
GB
I'm looking to populate a combo box with months - Jan, Feb, etc. - but want to avoid hard coding each option.

I know there's a way to do it but when I try, for example, a loop from 1 to 12 and then Format(loop,"mmm") I get a type mismatch error.

I'm probably being too simplistic - help please!!!
 
try this...

MonthName(1)

Or..

Left(MonthName(1),3)



Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top