Calendar Control Question

RHubbard

Registered User.
Local time
Today, 16:18
Joined
Dec 25, 2001
Messages
47
I have a form with calendar control 11.0 placed on it.

When the form opens, the calendar is invisible.

When the cursor enters a field called ClassDate the calendar (calClassCalendar) becomes visible.

When the user clicks a date on the calendar control I want that date to appear in in the ClassDate field.

I would have expected the Calendar Control to have an OnClick Event Property that would have allowed something like
ClassDate.value=calClassCalendar.val

To my complete dismay there is NO OnClick event on the Calendar Control.

How to I get the Calendar Control's date to display in the ClassDate field?

Thanks for the help.

Rick
 
Try this link, it helped me greatly with pop up calenders.

Link
 
Does it have a lostfocus event? On losing focus you could get it to send its value to the classdate field
 
Just a suggestion: i used the calendar control 11.0 and it was just misery for me. i had problems with distributing to other computers with different versions of Office (e.g. with/wo sp1 or sp2). in addtion, i just couldn't get the right values not enough events etc.. just a lot of problems i now use a calendar i found on the internet and i am lot happier.
try this one: http://allenbrowne.com/ser-51.html

i made one modification on the form_open i added the function CDate(gtxtCalTarget.Value) but other than that i am happy with it.

good luck,

sam
 
RHubbard said:
<snip>
To my complete dismay there is NO OnClick event on the Calendar Control.

How to I get the Calendar Control's date to display in the ClassDate field?
<snip>

Thanks for the advice.

I discovered that even though there is no OnClick Event on the Calendar Control Properties, that event can be controlled in the VB editor.

After I selected On Click there, I was able to update the date field on the form with the date selected from the control with no problem.

Rick
 

Users who are viewing this thread

Back
Top Bottom