473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

How to use Calendar in Access 2003

vs2k8
13
Hello guys,
I am using Access 2003 and in my form I have 3 date fields,Ord Date, Recvd Date, Due Date, user needs a calendar button so when clicked it shows calendar and when date is selected in reflects into the date field and after selection it minimizes the calendar , so any suggestion how I can achieve it and will it obey the validation rule too if selected from calendar as I have beforeupdate it checks Ord Date and Due date should be greater then Recvd Date

I know using toolkit I can get Calendar but how to implement its hard for me.

Thanks in advance..

-visa
Jul 10 '08 #1
3 7382
missinglinq
3,532 Expert 2GB
Someone is going to come along and suggest that you not use the ActiveX Calendar control that comes with Access, because of problems that it can cause, and suggesting some non-ActiveX calendars that you can use instead. Whether ActiveX Calendars cause problems really depends on your use of it. An ActiveX Calendar is fine if you're not distributing this database among numerous PCs, or if you are, that all the PCs are running the same version of Access as the PC the app is being developed in runs. Different versions of Access have different versions of the Calendar controls, and mixing them can sometimes cause problems. The same rule exists if you have any idea that you will be upgrading to a later version of Access. The code below will work with whichever type of calendar you use:

What I do for this type of thing is place a calendar control on the form, positioned as you like and set it's Visible Property to NO.

Then, using the DoubleClick property of your text box, have the calendar "popup" for date selection. You'll need to replace YourCalendarName with the actual name of your calendar, and YourTextBoxName with the actual name of your text box. You can do this for as many textboxes as you want, using the first bit of code below.

Expand|Select|Wrap|Line Numbers
  1.  Private Sub YourTextBoxName_DblClick(Cancel As Integer)
  2.   YourCalendarName.Visible = True
  3. End Sub 
  4.  
Expand|Select|Wrap|Line Numbers
  1. Private Sub YourCalendarName_Click()
  2. Screen.PreviousControl = YourCalendarName.Value  
  3.   YourTextBoxName.SetFocus
  4.   YourCalendarName.Visible = False
  5. End Sub
  6.  
  7.  
Now, all your user has to do is DoubleClick on the text box that will hold the date and up pops the calendar! When the user clicks on the date, the calendar disappears and the text box is populated with the date.

Linq ;0)>
Jul 10 '08 #2
RuralGuy
375 Expert 256MB
Another advantage of most of these calendars is that they require *no* real estate on your form. http://www.accessmvp.com/JConrad/acc...calendars.html
Jul 10 '08 #3
missinglinq
3,532 Expert 2GB
I knew someone would be along with a list of alternative calendars! Can't find my list! Of course the hack above uses *no* real estate either, since the calendar "disappears" when not in use!

Linq ;0)>
Jul 11 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Wayne Aprato | last post by:
I have a client who is running several Access 97 databases that I have written for them. They are about to upgrade to Access 2003. Is the default file format of Access 2003 still Access 2000 the...
3
by: Colin Chudyk | last post by:
Hi, Here is my situation. Can anyone provide insight? I have developed a database in Access 2002. I am planning to distribute it as a split MDE (front) / MDB (back) to be used by the Access...
3
by: JHB | last post by:
Hello. How do I get a date picker (References: Microsoft Calendar Control 8.0 Location C:\Windows\System 32\mscal.ocx) inset in MS-Access 2000, to work in MS-Access 2003.
10
by: Lauren Wilson | last post by:
Ok I have searched the MS website for info on this. I am totally confused. If I want to deploy an Access 2003 app and allow my users to run it using Access 2003 Runtime, where do I get the...
0
by: kevinsaucier | last post by:
Hello all, I'm sure this has been asked a bunch of times, but I am just not finding the answers that I am looking for. We have developed an application that we plan to market. The app is...
4
truthlover
by: truthlover | last post by:
I have a DB that tracks the days a certain person is going to be working on a task and I need to be able to choose multiple dates for the task. Is there a way to choose mulitple dates from a...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
7
by: akum78 | last post by:
Hi, I've been trying for a while now to arrange one of my reports into a calendar layout in access 2003. The current report takes the values of a query made from an intake table which contains the...
2
stonward
by: stonward | last post by:
I have to update a form based on old(!) Access 2003 - in particular I need to replace the old DatePicker control with a proper calendar control. I have Calendar 12, but it's always maximised. So have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
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...

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.