My Assistant
![]() ![]() |
|
|
Apr 17 2012, 07:57 AM
Post
#1
|
|
|
UtterAccess Enthusiast Posts: 88 |
Good morning!
What I want to be able to do is when I tab into a field that is for a date, I want the date picker to automatically appear so I don't have to use the mouse to click on it. I couldn't find anything as a macro, and I'm not at the level yet to write VBA to make it work. Any help would be great. Thanks |
|
|
|
Apr 17 2012, 08:58 AM
Post
#2
|
|
|
UtterAccess VIP Posts: 9,430 From: Wisconsin |
Kattracks,
Open the form in Design View. Select the textbox that will store the date. Open the Properties box. Under the Events tab, select the On Got Focus event. A small button with three buttons will appear to the right of where you clicked. Click this button, and you'll be taken to the Visual Basic Editor, with a header and footer defined for that control's On Got Focus event. Something along these lines: CODE Private Sub dteTestDate_GotFocus() End Sub Add the following line of code between the header and footer: CODE Application.RunCommand (acCmdShowDatePicker) This should open the date picker every time you tab into that textbox, or click on the textbox. Hope this helps, Dennis |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 18th June 2013 - 07:28 PM |