Solved

Display Date Picker in Access

Posted on 2011-03-21
9
699 Views
Last Modified: 2012-06-27
Hi

In MS Access is there a way of automatically making the date picker appear when a date control has focus - ie as opposed to having to click on the date picker icon next to the control

Many thanks
0
Comment
Question by:kenabbott
9 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 35181165
you have to use your own calendar control to do this.
see this sample db
CalendarExample.mdb
0
 
LVL 84
ID: 35182524
What version of Access? 2007 and above have a native Datepicker control. This is controled in the Properties window for each control.
0
 
LVL 75
ID: 35182744
"In MS Access is there a way of automatically making the date picker appear when a date control has focus"
From a user standpoint, I suggest not doing this, as it may be more of an annoyance than helpful.  If a using is just tabbing through that control(s) ... then having the picker pop will be annoying.

mx
0
 

Author Comment

by:kenabbott
ID: 35184119
For this particular project getting the date picker to work in this way is exactly what is required thus the reason for my question so the annoyance factor doesn't come into it.

Its Access 2007
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 75
ID: 35184140
I played with it some in A2010 ... so far can't get it do pop open ... but I have a feeling there is away.

mx
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 35184184
Ok  here you go:

Private Sub txtYourDateField_GotFocus()
    SendKeys "%{DOWN}"
End Sub
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35184540
As MX has answered your direct question, I am not seeking any points here...

The Access 2007 Calendar "Thingy" is cool, but it is terrible if your dates span large ranges...

...just try selecting a date of May 12, 2005
:-O
LOL

<getting the date picker to work in this way is exactly what is required>
FWIW, things like this are always deemed "Required", because they seem slick and or cool.

...but as MX states, users will be come frustrated because they can type in "5/12/2005" a LOT faster than they can "Navigate" to it using the control.

Again, just my 2c,  as I know that the 'requirements' pay the bills,...
;-)
..and perhaps you only need fairly recent dates...

;-)

JeffCoachman

0
 
LVL 75
ID: 35184644
Yes, unfortunately it's another 'partial implementation' of a feature :-(

For example ... Shift+Left Arrow (once open) SHOULD decrement the date by one year ... things like that.

mx
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35185596

<Shift+Left Arrow (once open) SHOULD decrement the date by one year>

Every day's a school day...
;-)

Jeff
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now