ActiveX Calendar events...

S

Sid

On the Calendar 8 Activex control in Access 97, how can I get an event or
run code when the month or year is selection changed. I wanted to update my
surrounding form's controls according to changes made in Calendar. I now
send Calendar the current month and first day when opening with:
D = Day(Date)
M = Month(Date)
Y = Year(Date)
Me!ActiveXCalendar = DateSerial(Y, M, 1)
I can do it manually with a Button or Lost Focus that uses:
ActiveXCalendat.Value
Thanks
Sid
 
J

Jonathan Parminter

-----Original Message-----
On the Calendar 8 Activex control in Access 97, how can I get an event or
run code when the month or year is selection changed. I wanted to update my
surrounding form's controls according to changes made in Calendar. I now
send Calendar the current month and first day when opening with:
D = Day(Date)
M = Month(Date)
Y = Year(Date)
Me!ActiveXCalendar = DateSerial(Y, M, 1)
I can do it manually with a Button or Lost Focus that uses:
ActiveXCalendat.Value
Thanks
Sid
Hi Sid, use the calander object click event. for example
control with name atxDate use

private sub atxDate_Click()
txtDate.value=atxDate.value
end sub

Luck
Jonathan
 
S

Sid

Thanks Jonathan
But, I don't see a click event in the ActiveX control I'm using. The only
events are:
On Updated, On Enter, On Exit, On Got Focus, and On Lost Focus. I can't
select and view properties for individual controls on the ActiveX calendar,
like Month and year selectors.
What am I missing?
Thanks
 

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