A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Open datepicker automatically on textbox selection



 
 
Thread Tools Display Modes
  #1  
Old February 10th, 2010, 02:44 PM posted to microsoft.public.access.forms
Olly[_3_]
external usenet poster
 
Posts: 8
Default Open datepicker automatically on textbox selection

At the moment the user needs to click the textbox, and then on the
datepicker symbol to open the datepicker control. I am looking for a
way to open the datepicker automatically when the user enters into the
textbox, either through clicking on it or entering during the tab
cycle.

For example to open a combo box when the user's cursor enters it you
use "Screen.ActiveControl.Dropdown" in a function that is called from
the form objects "onenter" method. I'm looking for something similar
for the datepicker control.

cheers
Olly
  #2  
Old February 10th, 2010, 03:59 PM posted to microsoft.public.access.forms
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default Open datepicker automatically on textbox selection

Here is a simpler Access form that does the same thing and will work in all
versions of Access (with conversion). The Date Picker control does not work
in Access 2010:

http://www.datastrat.com/Download/Calendar2K.zip

This one uses less resource too, so you're ahead there as well.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"Olly" wrote in message
...
At the moment the user needs to click the textbox, and then on the
datepicker symbol to open the datepicker control. I am looking for a
way to open the datepicker automatically when the user enters into the
textbox, either through clicking on it or entering during the tab
cycle.

For example to open a combo box when the user's cursor enters it you
use "Screen.ActiveControl.Dropdown" in a function that is called from
the form objects "onenter" method. I'm looking for something similar
for the datepicker control.

cheers
Olly



  #3  
Old February 11th, 2010, 02:03 PM posted to microsoft.public.access.forms
Olly[_3_]
external usenet poster
 
Posts: 8
Default Open datepicker automatically on textbox selection

Thanks

But that wasn't really what I was looking for. I needed something
that would display in the same form. So I used the Calendar Active X
control, and used the visibility property to show and hide it as
necessary.

cheers
Olly

On 10 Feb, 14:59, "Arvin Meyer [MVP]" wrote:
Here is a simpler Access form that does the same thing and will work in all
versions of Access (with conversion). The Date Picker control does not work
in Access 2010:

http://www.datastrat.com/Download/Calendar2K.zip

This one uses less resource too, so you're ahead there as well.

"Olly" wrote in message
At the moment the user needs to click the textbox, and then on the
datepicker symbol to open the datepicker control. *I am looking for a
way to open the datepicker automatically when the user enters into the
textbox, either through clicking on it or entering during the tab
cycle.


For example to open a combo box when the user's cursor enters it you
use "Screen.ActiveControl.Dropdown" in a function that is called from
the form objects "onenter" method. *I'm looking for something similar
for the datepicker control.


cheers
Olly

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:22 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.