Originally Posted by
Micron
Sounds like you are shackled somewhat and are trying to populate an appointment calendar whereas at first I thought there was a calendar control involved. So if the textbox contains only the month and year and a separator like / and is not a date you are faced with a convoluted combination of the Len, Mid and InStr functions to get the date parts on either side of the separator and assign these values to the combo boxes. Yuck! They will not contain date values, so I wonder what good they are to the user because I cannot glean from your posts what is to be done with them. However, if the controls are bound (you do not say how they get their values on form opening) fuggedaboudit!
But I think the textbox contains a valid date based on what you wrote, so you could extract the values you need using a Date function such as DatePart or DateSerial. Once they are in there, then what? A combo box is for selecting a value from a list and doing something based on the selection, not for populating this way. It makes a bit more sense to me to do what you're doing to text boxes, but then, I don't have a complete understanding of the application.