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 / Modules / DAO / VBA / December 2005

Tip: Looking for answers? Try searching our database.

MSCAL.OCX KeyPress Event not exposed in the properties!events dial

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marvin - 14 Dec 2005 18:03 GMT
Need help addressing the KepPress Event

I'm new to Access programming...

Background & Fact pattern:

I downloaded the Calander example example form:
" http://www.fontstuff.com/access/acctut09.htm "
It works fine and is a great starting point!

The application I am creating, using Access 97, is basicly a data entry app.

To speed up data entry and have a consistant feel to the application I want
to allow the users to use the keyboard arrow & "enter" keys to select the
date (in additon to mouse events)

In the Calander's Properties -> Event  dialogue the only events exposed are:
On Updated
On Enter
On Exit
On GotFocus
On LostFocus.

I did a search on my system and found exactly on instance of MSCL.OCX
version 8.0.0.3432

I found the Mscal.hlp file & says the KeyPress event is avalible...

One of the examples in the help is:

The following example increments the value of a Calendar control by one week
when the user clicks the button named ShowNextWeek.
To try this example, create a form with a Calendar control named ActiveXCtl0
and a command button named ShowNextWeek. Paste the following code into the
form's module. Switch to Form view and click the command button to increment
the week.

Private Sub ShowNextWeek_Click()
    Me!ActiveXCtl0.NextWeek
End Sub

which would be approperate action, for the down arrow key, in a Case
statement.

Thanks for your help...
Marvin
Alex Dybenko - 14 Dec 2005 18:19 GMT
Hi,
open form class module, in top left button select calendar control name, in
right one select event you need
HTH
Signature

Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

> Need help addressing the KepPress Event
>
[quoted text clipped - 48 lines]
> Thanks for your help...
> Marvin
Marvin - 14 Dec 2005 22:21 GMT
Thanks Alex!  That did the job.
marivn

> Hi,
> open form class module, in top left button select calendar control name, in
[quoted text clipped - 52 lines]
> > Thanks for your help...
> > Marvin
 
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.