Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlinks

Status
Not open for further replies.

integritycare

Technical User
Mar 12, 2011
151
AU
Hi all,

I want to use the double click event on a text box to open the hyperlink dialog box. The command is "C^K".

How would this code be written, that is, if it can be done.

Many thanks,

Integrity
 
You can use RunCommand to run most menu items. In this case, I think you are looking at a world of hurt for your users as they try to get the exact speed of click and double-click.


Code:
Private Sub AHyperlink_DblClick(Cancel As Integer)
DoCmd.RunCommand acCmdEditHyperlink
End Sub

If the user cancels the action, you will get an error message.


 
Hi Remou,

Thanks for your reply. Users wont be using this command. I will be the only person. What it is that when we add a word / pdf doc to our management system, it has to be hyperlinked. This is just to save me time...

Integrity

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top