ACC97: Access Keys Displayed Incorrectly on Form Exported to ASPLast reviewed: June 27, 1997Article ID: Q170691 |
The information in this article applies to:
SYMPTOMSAdvanced: Requires expert coding, interoperability, and multiuser skills. NOTE: This article contains information about editing ASP files. It assumes that you are familiar with Active Server Pages, Visual Basic Scripting, and editing HTML files. Microsoft Access Technical Support engineers do not support modification of any HTML, HTX, IDC, or ASP files. When you export a form to ASP and view the ASP file in a browser, label controls with access keys are displayed with their literal caption text. For example, a form may contain a label control whose caption is &Supplier ID. When you view the form in Form view in Microsoft Access, the caption appears as Supplier ID with an underscore under the "S." However, the caption appears as &Supplier ID when you view the corresponding ASP file.
CAUSEAccess keys are not supported in a form that has been exported to ASP.
RESOLUTIONWhen you export a form to ASP, two files are created: the frame file and the layout file. The name of the layout file contains the name of the form followed by the letters "ALX." The only way to remove the ampersand (&) from the label caption is to manually edit the layout file. For example, the caption line in the file Suppliersalx.asp is
<PARAM NAME="Caption" VALUE="&Supplier ID">Note that the value of the caption includes the ampersand. You can open the ASP file in a text editor, such as Notepad, and change the caption line, for example:
<PARAM NAME="Caption" VALUE="Supplier ID"> STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESFor more information about access keys, search the Help Index for "access keys," or ask the Microsoft Access 97 Office Assistant.
|
Additional query words: hot
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |