Microsoft KB Archive/200711

= ACC2000: Hyperlink Data Type Does Not Make Real Hyperlink on Page =

Article ID: 200711

Article Last Modified on 6/24/2004

-

APPLIES TO


 * Microsoft Access 2000 Standard Edition

-



This article was previously published under Q200711



Moderate: Requires basic macro, coding, and interoperability skills.

This article applies only to a Microsoft Access database (.mdb).



SYMPTOMS
If you place a control bound to a Hyperlink field on a data access page, you can see the address, but it does not function as a hyperlink.



RESOLUTION
To create hyperlinks on a page from a Hyperlink data type, use one of the following methods.

Method 1
 Create a query that contains all the fields for your page, except for the Hyperlink field. Add the following formula to the query, instead of the Hyperlink field:

Expr1: HyperlinkPart([field name],2)

 Create your page and use the query as the record source, instead of the table; then, open the page in Design view. Add fields and controls as you usually do, except for the expression that you created in step 2. To add the hyperlink expression, click the Bound Hyperlink tool in the tool box. Click and drag the expression that you created in step 2 to the page.</li></ol>

NOTE: These steps create a valid hyperlink. However, the name on the page is always the name of the expression in the query.

Method 2
To use this method, you must add the hyperlink field to the page before you set Control Source or Hyperlink properties of the Bound Hyperlink control. You can remove this field, after setting the Control Source and Hyperlink properties, or hide this field if you do not want it to show in the page.

Note: In some situations this method does not work. If you cannot get this method to work, follow the steps in Method 1. <ol> Create a new data access page in Design view that is based on your table that has the Hyperlink field. This field should have the data type set to Hyperlink.</li> If the toolbox is not displayed, click Toolbox on the View menu.</li> Click the Bound Hyperlink control in the toolbox, and then click the page to add the hyperlink.</li> View the property sheet for the Bound Hyperlink control.</li> On the Data tab, type the following expression in the ControlSource property:

=document.all("msodsc").hyperlinkpart([HyperlinkField],2)

Press ENTER to commit the change.</li> Click the Hyperlink tab.</li> Type the following expression in the ControlSource property:

=document.all("msodsc").hyperlinkpart([HyperlinkField],2)

Press ENTER to commit the change.

NOTE: You must type this expression on both the Data and the Hyperlink tabs for it to work.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in Microsoft Access.

Additional query words: DAP pra boundhyperlink URL URLs

Keywords: kbbug kbdap kbpending KB200711

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.