Hide CalCtrl On Certian Tabs

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.
 
C

Chaster

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.
 
A

Allen Browne

If your calendar control has a DblClick event, you should be able to:
Me.ExpectedArrivalDate = Me.[NameOfYourCalendarControlHere]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top