I have a form (frmCalendarSelection) with all months of a year displayed. Upon changing the year I have code that will cycle through all the subforms and redraw the months to correspond to that year. The problem I ran into though was hiding those days that were either before the first of the month or after the last day. The only way I was able to stop from getting the error that indicated you can't hide a control that has the focus was to put a control called focus_ctl on the subforms that it would set focus to before trying to hide the control. Is there a better way to take focus off a control other than specifying another control?
I've included the work in progress.
Thanks in advance
I've included the work in progress.
Thanks in advance