Explanation:
I must use double kick when I chall insert the date, becaurse when I use a
single click an go back to earlier record the value change to the date of
the date. That I wish to due is: click for example Ctrl + D ore Ctrl +L the
date is automatically appear
Erik Gjertsen
You could put a command button next to the control. Set the Caption property of
the button to &D. The caption will appear as an underlined D. Set the
Transparent property of the button to true. The button will appear to be
invisible but it is still enabled. make the button very small (Width = 0)
By puting the & before the D in the caption you have created a hot key for the
button so that pressing Alt + D will fire whatever code is behind the button
without having to click the button with the mouse. So in the OnClick event of
the command button put something like -
Me.MyTextBox = Date()
Now when the user presses Alt + D the current date will be entered in your
control.
The hotkey can be set on any character in the caption of the button eg Sa&ve
would make the hotkey for the button v.
You can only have 1 hotkey in a form for each character in the alphabet.
Wayne Gillespie
Gosford NSW Australia