Left Click or Enter

N

Nicole

After setting the focus on my control button or hyperlink, I would like to
initiate the Left mouse click or the Enter key in oder to activate the
control or open the hyperlink. Is this possible?

Nicole
 
S

SteveM

You can call the button click event directly but buttons and hyperlinks are
designed to be clicked by the user.

If you really want to initiate a button click in code just use the name of
the procedure, something like:

MyButtton_OnClick

Steve
 
N

Nicole

This didn't work at all. I got the error message "Sub or Function not
defined."

In the continued effort of trying to make the database easier for the user,
I'm trying to automate a set of repetitious tasks. After a list of about
10-15 hyperlinks are created separately, they'll all eventually have to be
opened, printed out, and compiled into a bound document. This is what I want
to create this new button for.
 
D

Douglas J. Steele

The Click event of a button will generally be MyButton_Click, not
MyButton_OnClick
 
Top