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
> 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
Nicole - 16 Jul 2007 17:12 GMT
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.
> You can call the button click event directly but buttons and hyperlinks are
> designed to be clicked by the user.
[quoted text clipped - 11 lines]
> >
> > Nicole
Douglas J. Steele - 16 Jul 2007 17:36 GMT
The Click event of a button will generally be MyButton_Click, not
MyButton_OnClick

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> This didn't work at all. I got the error message "Sub or Function not
> defined."
[quoted text clipped - 25 lines]
>> >
>> > Nicole