I would like to create an array of months to populate a several combo boxes on my forms. (I know that there is a calendar control but we have had a problem with this at work with it showing up as a missing reference on some user's machines) I know how to do an array for the days:
Dim index as variant (not sure if that is the right data type)
For index 1 to 31
cboDay.additem index
Next
But I can't figure out all the steps for the months. I think I need to start out with:
Dim Months(11) as variant
Month(0) = "January"....
But then how do I "call" that set to populate the combo box?
Dim index as variant (not sure if that is the right data type)
For index 1 to 31
cboDay.additem index
Next
But I can't figure out all the steps for the months. I think I need to start out with:
Dim Months(11) as variant
Month(0) = "January"....
But then how do I "call" that set to populate the combo box?