Learn Microsoft Access Advanced Programming Techniques, Tips and Tricks.

Editing Hyperlink Address Manually

Introduction.

Hyperlinks are everywhere in Internet. We have them in Microsoft Access too. It can be used to open Objects (Tables, Forms, Reports or Queries) by clicking on a  hyperlink, without writing a single line of VBA Code or Macro. Hyperlinks can be created in Tables or Forms. You can create menus to open Forms, Reports etc. You can open external files, like Word, Worksheets, .PDF, text and others with the use of Hyperlinks in Microsoft Access.

Hyperlinks in Access can be created or edited manually by entering it's link segments in proper order, in table field or on Form controls. Normally, editing can be done through a dialog box, displayed when right-clicked on the hyperlink control.


4 Segments of Hyperlink-Address in MS-Access.

Hyperlink address line is divided into four segments:

  1. Display Text : the text that appears in a field or control, indicating the hidden link's purpose
  2. Address : external file's path-name
  3. Sub-Address : Internal Object Name, to open Form, Report etc.
  4. Screen-tip : the text displays as a tool-tip.


Hyperlink Syntax is as follows:

Display Text#Address#Sub-Address#Tool-tip text

Hyperlink Data type field can store a maximum of 2048 characters.

You can find more details and usage of Hyperlinks in the earlier Post: Open Forms with Hyperlinks in Listbox.



Editing Hyperlink Manually.

Let us get into the manual editing of Hyperlink topic:

We will create a sample table with an Hyperlink field to try out the manual editing exercise.

  1. create a Table with a single field and data type Hyperlink.
  2. Save the table with a name.
  3. Open the table in datasheet view.

    If you know how to enter Hyperlink data into the field manually, you may do so, by following the hyperlink syntax shown below.

    Example: My Excel File#C:\\\My Documents\Workbook1.xls##Click

  4. After entering the sample hyperlink in the field, open the table in datasheet view.

    You will see that the hyperlink field is active and the only text showing is the Display Text (My Excel File) part of the hyperlink information.

  5. Move the mouse-pointer over the field, it changes the Mouse-Pointer to a hyperlink pointer (a Hand with index finger).

    If you click on the field to edit the hyperlink information, it will only open the document specified in the second segment.

    If you right-click on the field the shortcut menu, which carries the hyperlink editing options in a dialog box is displayed.  You may key-in values at appropriate controls to change the hyperlink values.  You cannot key-in values into the hyperlink field directly.



    Simple Trick to Edit Hyperlink Manually.

    But, we can manually edit the field with a simple trick.

  6. Close the Table for now.
    • Click on Office Button.
    • Select Access Options.
    • Select Advanced.
    • Find the Behavior Entering Field options.
    • Select Go to end of field radio button.
    • Click OK to close the Access Options control.
  7. Open the Table after completing the above steps.

You can see that the insertion point is positioned at the end of the field value, exposing the hyperlink information. Move the insertion point back to the location where you need editing the field.

If you have more than one record to edit then change them and reset Behavior Entering Field option to Select Entire Field.

TIP:

If you would like to show the full Pathname of the File as display text then copy the second segment hyperlink value and paste it in the display text position also.



Stand-alone Label Controls Have Hyperlink Properties.

The Label control on Form can be used as a hyperlink control.  The label control have Hyperlink Address & Hyperlink Sub-Address properties, use Caption property to set the Display Text value of hyperlink. Set the Special Effect property value to Raised to make it look like a Command Button.

Share:

No comments:

Post a Comment

Comments are subject to moderation before publishing.

Translate



PageRank
Subscribe in a reader
Your email address:

Delivered by FeedBurner

Search

Popular Posts

Search This Blog

Blog Archive

Powered by Blogger.

Follow by Email

Labels

Forms Functions How Tos MS-Access Security Reports Class Module msaccess forms Animations msaccess animation Utilities msaccess controls Access and Internet MS-Access Scurity MS-Access and Internet Array External Links Queries msaccess reports msaccess tips Accesstips Downloads Objects Property Collection Object Event Menus and Toolbars Controls MsaccessLinks Process Controls WithEvents Art Work msaccess How Tos Combo Boxes Graph Charts List Boxes VBA msaccessQuery Command Buttons Dictionary Object Form Report Calculation Command Button Data Emails and Alerts Query RaiseEvent Custom Functions Custom Wizards DOS Commands Data Type Object Reference ms-access functions msaccess functions msaccess graphs msaccess reporttricks Item msaccessprocess security advanced Access Security Add Auto-Number Field Type Fields Form Instances Key Macros Menus SubForm Top Values Variables msaccess email msaccess menus progressmeter Access2007 Copy Excel Expression Join Methods Microsoft Numbering System Records Recordset Security Split Table Time Difference Utility Workgroup Wrapper Classes database function ms-access msaccess wizards reference text tutorial vba code Access2003 Accounting Year Action Animation Attachment Binary Numbers Bookmarks Budgeting ChDir Color Palette Conditional Formatting Data Filtering Defining Pages Diagram Disk Dynamic Lookup Error Handler Export External Filter Formatting Groups Hexadecimal Numbers Import Labels List Logo Macro Mail Merge Main Form Memo Monitoring Octal Numbers Operating System Paste Primary-Key Product Rank Reading Remove Rich Text Sequence SetFocus Summary Tab-Page Tables Union Query User Users Water-Mark Word automatically commands hyperlinks iSeries Date iif msaccess msaccess alerts pdf files restore switch toolbar updating upload

Featured Post

Opening Access Objects from Desktop

Frequently Used Methods. Set the Form Name in Display Form Option of Current Database in Access Options . BIG DEAL!, this is the first t...

Labels

Blog Archive

Recent Posts