Left Click or Enter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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.
 
The Click event of a button will generally be MyButton_Click, not
MyButton_OnClick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top