ACC97: Can't Create Valid Links in Hyperlink Field on ASP FormLast reviewed: June 12, 1997Article ID: Q165295 |
The information in this article applies to:
SYMPTOMSNovice: Requires knowledge of the user interface on single-user computers. When you use Microsoft Access 97 to create an Active Server Pages (ASP) form, and you use that form to add or modify data in a Hyperlink field, the record in the table does not contain a valid hyperlink.
CAUSEASP forms do not contain the built-in functionality to add Hyperlink fields.
RESOLUTIONYou can edit the Hyperlink field in the Microsoft Access table to provide the missing information, or you can enter the Hyperlink field on the ASP form in a way that Microsoft Access understands and translates to hyperlink data. NOTE: Both of the following methods create a valid hyperlink in the Microsoft Access table, but not on the ASP form itself. You cannot follow hyperlinks displayed in a text box on an ASP form.
Editing the Record in the Table
Entering the Record as a Hyperlink on the ASP FormWhen you add or modify a record using the ASP form, you can type the hyperlink information in a way that enables Microsoft Access to create a valid Hyperlink field in the table. All Hyperlink fields consist of three separate parts, separated by number signs: DisplayText, Address, and Subaddress. The DisplayText is what you see in the table or on the form; the address and subaddress information tells Microsoft Access what you want to view when you click the hyperlink. For example, the following hyperlink uses all three parts of the hyperlink field:
1997 Sales Figures#C:\My Documents\Sales.ppt#24In this example, 1997 Sales Figures is what a user sees in the hyperlink field, C:\My Documents\Sales.ppt is the name of the Microsoft PowerPoint slide that opens when you click the link, and 24 is the slide number that is displayed. The next examples use only two of the three parts in the Hyperlink field:
Microsoft Home Page#http://www.microsoft.com# Quarterly Orders Form##Form Quarterly OrdersThe first hyperlink displays the text "Microsoft Home Page" and opens http://www.microsoft.com when you click the link. The second hyperlink displays the text "Quarterly Orders Form" and opens the Quarterly Orders form in the current database when you click it. Finally, this example uses only one of the parts of the Hyperlink field:
#http://www.microsoft.com/accessdev#In this case, Microsoft Access displays http://www.microsoft.com/accessdev by default because there is no specific display text, and it also opens http://www.microsoft.com/accessdev when you click it. If you enter hyperlink data in your ASP form using the correct syntax for DisplayText, Address, and Subaddress, then Microsoft Access stores the data as a valid hyperlink.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce BehaviorCAUTION: Following the steps in this example will modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and perform these steps on a copy of the database.
REFERENCESFor more information about the parts of a Hyperlink field, search the Help Index for "hyperlinks, returning hyperlink information." For more information about exporting ASP files, search the help Index for "ASP files," or ask the Microsoft Access 97 Office Assistant. For more information about creating and using System DSNs, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q159682 TITLE : "Data Source Name Not Found" Err Msg Opening Web PageFor more information about the permission you need on your Web server computer to view ASP files, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q162975 TITLE : ACC97: Permissions Necessary to View HTML, IDC, and ASP Files |
Additional query words: follow open data entry
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |