Error Inserting Hyperlink

C

CyberDwarf

Hi,

Having big trouble trying to add a hyperlinked document to a form field.

Code as follows:-
---------------------
Me.DocLink.SetFocus 'Focus to the link field
DoCmd.RunCommand acCmdInsertHyperlink
---------------------
This results in the standard hyperlink dialog, but no matter which document
I select, the second line of code returns an error, usually 2759 (The method
you tried to invoke on an object failed.), but sometimes error 7874 (Access
can't find the object 'ObjectName').

I have spent a couple of hours trying to get this to work, without any
success.

Any hints, help, or constructive criticism gratefully received!

TIA
Steve
 

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

Top