Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Left Click or Enter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nicole - 13 Jul 2007 23:22 GMT
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
SteveM - 14 Jul 2007 02:26 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.