473,466 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MS Access calendar 9.0 to pick dates on a form

I currently have a form in MS Access that has certain combo boxes
which specify criteria in order to run a query based on that criteria.
I want to add to this, a calendar from which a user will be able to
click on a date, where the chosen date will then be used as the
criteria for the control source of the calendar. What do I need to do
to make the calendar active?? I can physically get it on my form, and
specify the criteria in my query, but the calendar is not
functional(i.e. it doesn't do anything when I try clicking on a date).
Any ideas??

Thanks...

Matt
Nov 13 '05 #1
3 8208
ma************@eaton.com (Matthew) wrote:
I currently have a form in MS Access that has certain combo boxes
which specify criteria in order to run a query based on that criteria.
I want to add to this, a calendar from which a user will be able to
click on a date, where the chosen date will then be used as the
criteria for the control source of the calendar. What do I need to do
to make the calendar active??


See the Calendar Tips page at my website
http://www.granite.ab.ca/access/calendars.htm

There could, likely will, be lots of version problems when you go to distribute the
MSCal.OCX..

One alternative is MonthCalendar is a completely API generated Month Calendar derived
directly from the Common Control DLL. There are links to several downloadable
calendar forms at my website. As these are forms you can also do anything with them
you want.

You can also use the calendar form which comes in the Access <insert your version
here> Developers Handbook by Litwin/Getz/Gilbert, publisher Sybex
www.developershandbook.com. These books are well worth spending money. Every time I
open one I save the price of the book.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #2
Use this code to trap the user click:

Private Sub Calendar1_AfterUpdate()
On Error GoTo ErrorTrap
Dim dteSelectedDate As Date
dteSelectedDate = Me.Calendar1.Value
Exit Sub
ErrorTrap:

MsgBox "Error " & Err & ". " & Err.Description & ".", vbCritical
Resume Next

End Sub

--

Tony D'Ambra
Web Site: aadconsulting.com
Web Blog: accessextra.net

"Matthew" <ma************@eaton.com> wrote in message
news:7f**************************@posting.google.c om...
I currently have a form in MS Access that has certain combo boxes
which specify criteria in order to run a query based on that criteria.
I want to add to this, a calendar from which a user will be able to
click on a date, where the chosen date will then be used as the
criteria for the control source of the calendar. What do I need to do
to make the calendar active?? I can physically get it on my form, and
specify the criteria in my query, but the calendar is not
functional(i.e. it doesn't do anything when I try clicking on a date).
Any ideas??

Thanks...

Matt

Nov 13 '05 #3
Use this code to trap the user click:

Private Sub Calendar1_AfterUpdate()
On Error GoTo ErrorTrap
Dim dteSelectedDate As Date
dteSelectedDate = Me.Calendar1.Value
Exit Sub
ErrorTrap:

MsgBox "Error " & Err & ". " & Err.Description & ".", vbCritical
Resume Next

End Sub

--

Tony D'Ambra
Web Site: aadconsulting.com
Web Blog: accessextra.net

"Matthew" <ma************@eaton.com> wrote in message
news:7f**************************@posting.google.c om...
I currently have a form in MS Access that has certain combo boxes
which specify criteria in order to run a query based on that criteria.
I want to add to this, a calendar from which a user will be able to
click on a date, where the chosen date will then be used as the
criteria for the control source of the calendar. What do I need to do
to make the calendar active?? I can physically get it on my form, and
specify the criteria in my query, but the calendar is not
functional(i.e. it doesn't do anything when I try clicking on a date).
Any ideas??

Thanks...

Matt

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Stimp | last post by:
preferably one that when clicked can update three date dropdowns (day, month, year) like http://www.visitdublin.com/carhire/avis.asp Don't mind paying for the file... anyone seen something...
3
by: Hutty | last post by:
I'm trying create a calendar control that updates an access database with events. I have some code I managed to piece together. First error I'm running into is the Mycommand.ExecuteNonQuery(). I...
9
by: Greg | last post by:
Hi, I have a table with "dates", i'd like to display those dates on a calendar. I've put a calendar in a form, linked to my "date" field, and it works, but only showing one "date" per calendar....
1
by: malgorzata | last post by:
i have this script that i found on internet, but i nedd to compare the dates in calendar with the ones i pick up from database oracle using jsp. and i have a proble with it, can someone help me? ...
1
by: xian2 | last post by:
Hi, I wanted to create a calendar in Access that would call on data stored within tables in the database (dates in forms) and would show it visually on a calendar when the calendar was opened. I...
2
by: MobiusDick | last post by:
Hi All, I'm in the process of creating a database that allows users to enter details into a form which includes a date range as start and end dates. I have used the inbuilt Calendar Control...
1
by: itcassy | last post by:
I am working with Matt Kruse's Javascript Toolbox calendar popup and have everything working correctly. However, I need to not only disable today's date, but also the next two days. For the form I am...
1
by: prakashwadhwani | last post by:
Hi !! I'm planning on providing my cutomers with a "Calendar Control" in their forms to pick dates. IIRC, I've read a lot of cons some years back about using the ActiveX control & to rather use...
1
by: abhishekbrave | last post by:
The code below is opening a calendar on mouse over in the same window. I need the calendar to be opened in new window. Have to fulfill this requirement urgentely so posting the whole code here. I...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.