short cut

  • Thread starter Thread starter Erik Gjertsen
  • Start date Start date
E

Erik Gjertsen

It is possible to make a chort cut to run a code.
I have make at textbox. I have code the textbooks width, when I dbklikk the
textbooks. The date automatically appear.
I wish to use the short cut to due the same job
I hope someone can help me
Thanks

Erik Gjertsen
 
Not sure of what you mean by "short cut" with code, but perhaps you could
set the Default Value of the textbox to be this expression:
=Date()

That will automatically put the current date in the textbox when a new
record is started; you then can manually change it if you wish.
 
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
 
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
 
Erik

The key combination Ctrl+: will insert the current date. It is a built-in
function of Access.

I hope this helps.

Eric

| 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
|
| | > Not sure of what you mean by "short cut" with code, but perhaps you
could
| > set the Default Value of the textbox to be this expression:
| > =Date()
| >
| > That will automatically put the current date in the textbox when a new
| > record is started; you then can manually change it if you wish.
| > --
| > Ken Snell
| > <MS ACCESS MVP>
| >
| > | > > It is possible to make a chort cut to run a code.
| > > I have make at textbox. I have code the textbooks width, when I
dbklikk
| > the
| > > textbooks. The date automatically appear.
| > > I wish to use the short cut to due the same job
| > > I hope someone can help me
| > > Thanks
| > >
| > > Erik Gjertsen
| > >
| > >
| >
| >
|
|
 
Back
Top