Hi, Peter.
The built-in menus aren't available in the Runtime version of Access, so
you'll need to create your own shortcut menu. First, copy the following code
and paste it into a standard module:
Public Function EditHypLink() As Boolean
On Error GoTo ErrHandler
RunCommand acCmdEditHyperlink ' Call the "Insert/Edit
'
Hyperlink" dialog window.
Exit Function
ErrHandler:
MsgBox "Error in EditHypLink( )." & vbCrLf & vbCrLf & _
"Error #" & Err.Number & vbCrLf & vbCrLf & Err.Description
Err.Clear
End Function ' EditHypLink( )
Save and compile the code. Next, create a custom shortcut menu. If you
need help, then please see the following Web pages:
http://msdn.microsoft.com/library/d...reateCustomShortcutMenuForCurrentDatabase.asp
http://msdn.microsoft.com/library/d.../en-us/off2000/html/ofhowAddCommandToMenu.asp
While designing your custom shortcut menu, add a custom button to this
shortcut menu. Right-click on this button and select Properties from the
pop-up menu to open the Properties <MyMenu> Control Properties dialog window.
In the On Action Property, type the following:
=EditHypLink()
(No spaces.) Close the dialog window when finished making any other changes
and then close the Customize dialog window.
Open the form with the Hyperlinks you want the users to be able to edit in
Design View and then open the Properties dialog window. Select the Form
Properties and then select the "Other" tab. Select the Shortcut Menu
Property and assign Yes to this property. Select the Shortcut Menu Bar
Property combo box and select the name of your custom shortcut bar. Close
the Properties dialog window and save the form.
The Runtime version users will be able to use this shortcut menu, and also
use the Edit Hyperlink dialog window whenever they right-click on a Hyperlink
control.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.