Date Picker

G

Guest

The in-built date picker is a great function in Access 2007, but anyone know
how to
apply an Event Procedure (eg Refresh or Requery) after selecting a date using
the datepicker? Selecting a date seems merely to enter the data into the
field and no event actually occurs until tabbing out of the control. I use
several forms based on queries with a user-defined date range - Have I missed
something or is this a bug....
(I know it is quicker just to input a date from the keyboard, but users seem
to like this popup datepicker function)
 
M

missinglinq via AccessMonster.com

Haven't worked with ACC2007, but I'm assuming the date is assigned to the
given field in the DP's AfterUpdate event. Go into the code editor, find this
event and place your refresh/requery code after the date's been inserted.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 
G

Guest

Many thanks - great. It is just a pity that MS havent given the datepicker
its own property sheet...
 
G

Guest

Sorry, but as far as I can see, the datepicker has no property sheet to
configure events - hence the problem.
 
M

missinglinq via AccessMonster.com

This must be something new in 2007. In previous versions ActiveX items, such
as DatePicker only had limited Property Box items, but their full properties
were available thru the VB Editor, you just had to know to look for them.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 
G

Guest

I too have always provided a custom date picker in every application I've
developed and now Vista has caused me great grief in the the picker icon
happens to be in the same place as my "Open Calendar Dialog" button.

Is there an Option I can set to stop that picker appearing?
 
G

Guest

Sorry, let me rephase that.

I have a custom date picker dialog form. I put the button to open that form
next to text boxes where the user enters the date. Because I set the format
to "Date/Time", in VISTA an icon appears over the top of my button.

How do I stop the default Vista date picker icon from appearing when the
user enters my text box?
 
G

Guest

Thanks for the reply.

Using Double Click is a great idea, only I like the graphical interface. A
picture of a calendar looks better than a string of text. I guess even
Microsoft proved that when they automated the date picker icon to appear on
text boxes marked with "Date/time" as the format.

I did notice that on your sample, the text boxes do not have the format set
to date/time.

I might post this again in a broader discussion group another time. As
yet, I still haven't found a way to turn it off.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top