Hide CalCtrl On Certian Tabs

  • Thread starter Thread starter Chaster
  • Start date Start date
C

Chaster

I just added a calander control 9 activex ctrl to my form.

It shows up on all tabs. I want it to display just on certian tabs. Is
there a way of doing this either on the properties sheet of each tab or via
code?

If tab = whatever then
calctrl.visible = false
end if

This is the first time I have worked with this control and I would like to
set the value in one of my fields to the active value on the control when I
double click on a date. I looked at the properties and did not see where I
might be able to do this.

Is this possiable?

Thanks in advance.
 
You were correct about putting this on the form rather than a page. Your
advise worked perfectly.

Now that the ctl is on the proper tab do you know how I can set the value,
in a field on my form, to whichever value I doulbeclick on the control.

What I am trying to do is set the value in Me.ExpectedArrivalDate to what
ever day I doubleclick on in the calendar control.?

Thanks for all your help so far.
 
If your calendar control has a DblClick event, you should be able to:
Me.ExpectedArrivalDate = Me.[NameOfYourCalendarControlHere]
 
Back
Top