Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / April 2006

Tip: Looking for answers? Try searching our database.

where is onclick event in calendar

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mikeslaptop - 05 Mar 2006 16:22 GMT
using ms calendar control in access.
i want it to do something when i change the date, but there's no onclick
event associated with it.
only gotfocus,lostfocus,updated,exit,enter.
i tried all the events, and was hoping the update event would work, but i
can even seem to get it to trigger.

any ideas??

thanks.
Douglas J. Steele - 05 Mar 2006 16:45 GMT
I never use that control (preferring the one Stephen Lebans has at
http://www.lebans.com/monthcalendar.htm), but I do know that sometimes the
events exist even if they don't show up in the control's Properties dialog.

In the VB Editor, select the calendar control in the left-hand combo box,
then look in the list of possibilities in the right-hand combo box. Is Click
there?

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> using ms calendar control in access.
> i want it to do something when i change the date, but there's no onclick
[quoted text clipped - 6 lines]
>
> thanks.
mikeslaptop - 05 Mar 2006 22:49 GMT
thanks. i downloaded and attempted to use it. WAY to much work, and above my
level of understanding all of what i'm doing. also, if i loose this piece of
paper, i'll never be able to use this calendar in another app.
i like the idea of installing a control and dropping it onto my form.
all i want to do is click on a date and make something happen.

i also looked the the object browser, and it did show a click event.  i
typed in a sub for the click event, but nothing happened. this is just all
too confusing.
why isnt there a click event on the microsft-calendar control?? i really
dont get it.
sorry, frustration creeping in.
i also looked into creating my own control, but i apparently need $1000
worth of software and lots of classroom time.

>I never use that control (preferring the one Stephen Lebans has at
>http://www.lebans.com/monthcalendar.htm), but I do know that sometimes the
[quoted text clipped - 14 lines]
>>
>> thanks.
Douglas J. Steele - 06 Mar 2006 22:33 GMT
Believe me, Stephen's calendar is far simpler than a control. Including
controls always significantly complicates the distribution of applications.

It doesn't matter whether or not you understand the modules that you need to
copy into your application: after all, you don't know what code is embedded
in any controls that you use.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> thanks. i downloaded and attempted to use it. WAY to much work, and above
> my level of understanding all of what i'm doing. also, if i loose this
[quoted text clipped - 30 lines]
>>>
>>> thanks.
HKComputer - 12 Mar 2006 19:14 GMT
If you are talking about the ActiveX calendar control that ships with Access,
it does have a click event.  I'm using Access XP and Access 2003 with the
ActiveX Calendar 8.0 control.  I use the click event all the time to transfer
the date to the correct text box and then close the calendar.

You must have something wrong in your sub.  Try something simple to test it:

Private Sub Calendar0_Click()
    MsgBox ("Hi from a calendar.")
End Sub
Chris - 13 Apr 2006 17:12 GMT
Mike,
If you right click the calendar and the choose the "Build Event..." option
that is how you program the OnClick event for the control.

> using ms calendar control in access.
> i want it to do something when i change the date, but there's no onclick
[quoted text clipped - 6 lines]
>
> thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.