Hyperlink Edit

G

Garry Jones

How can I edit the actual hyperlink in an Access form without typing it
all in again or being taken to the website. Do I need an adjacent
command button that changes my hyperlink field to edit with some vb
code? (If so and the code is simple could someone please point me in the
right direction)

Very happy for any help received.

Garry Jones
Sweden
 
J

John Nurick

You can select the textbox by tabbing into it, and then press F2 to edit
its contents or Ctrl-K to launch the hyperlink insert/edit dialog (or
use the Insert|Hyperlink menu command.

Alternatively, right-click on the textbox and select Hyperlink|Edit
Hyperlink.
 
G

Garry Jones

John said:
You can select the textbox by tabbing into it, and then press F2 to edit
its contents or Ctrl-K to launch the hyperlink insert/edit dialog (or
use the Insert|Hyperlink menu command.

Brilliant. Can I creat a command button on the form rather than using F2
as some users do not know about F2?

Garry Jones
Sweden
 
J

John Nurick

Try either of these in the button's Click event procedure:

Me.NameOfTextbox.SetFocus
DoCmd.RunCommand accmdEditHyperLink
or
Me.NameOfTextbox.SetFocus
SendKeys "{F2}"
 

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