[AccessD] Hyperlink Questions

Stuart McLachlan stuart at lexacorp.com.pg
Thu May 26 05:15:23 CDT 2016


It's actually contrary to the documented behaviour:

https://msdn.microsoft.com/en-us/library/office/ff822439.aspx

" When the user clicks the mouse button, the hyperlink is activated, and then the Click event 
occurs."


So looks like it is  a bug  :-)


-- 
Stuart


On 25 May 2016 at 18:43, Charlotte Foust wrote:

> Thanks Bill, I understand how they work, I just want to know why
> setting the address after the button has been clicked causes the link
> to followed. Maybe the after click event fires even though it isn't
> exposed in Access and reads the address.  I just don't trust stuff I
> can't find an explanation for.
> 
> Charlotte Foust
> (916) 206-4336
> On May 25, 2016 5:32 PM, "Bill Benson" <bensonforums at gmail.com> wrote:
> 
> > Thought hyperlinks simply open the documents they point to, no fuss.
> > It is a requirement of the hyperlink that has as it's subaddress an
> > external file to open that file in order to go to the "address".
> > Don't know what enables the action but that's how hyperlinks work.
> > The followhyperlink events, if they existed,  kick in after the
> > target is arrived at. That way n Excel anyway I think. On May 25,
> > 2016 6:42 PM, "Charlotte Foust" <charlotte.foust at gmail.com> wrote:
> >
> > > I'm deconstructing an mdb written (so to speak) by various people
> > > and ran across an interesting situation.  In one form, the OnClick
> > > event of a button contains code to create a Word.Application
> > > object and set its visible property to True.  Then it sets the
> > > HyerlinkAddress property of
> > the
> > > button to a Word document in a subordinate folder, and then opens
> > > a report.  Apparently Word attempts to open that document
> > > immediately,
> > which
> > > confuses me no end because I can't see what would cause the
> > > hyperlink to
> > be
> > > followed unless we're somehow triggering one of the hidden events
> > > of the command button.  There are no helpful comments in the code,
> > > of course.
> > >
> > > Can anyone explain it to me, please?
> > >
> > >
> > > Charlotte Foust
> > > (916) 206-4336
> > > --



More information about the AccessD mailing list