set control to any object on a form even if it hasn't had contro.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with a calendar that I only want to be visable and have focus
when a date field on the form has the focus. Is there a way to setfocus to
the calendar althou it hasn't been visable, therefore the set previous
control doesn't work?
 
Hi,
You would have to make it visible, then set focus.
Me.yourControl.Visible = True
Me.yourControl.SetFocus
 
Thanks Dan that worked fine. Such a simple solution but everything is new to
me. It's somtimes had to find a answer using the reference manuals.

Thanks Again
Dan
 
Back
Top