ACC97: Cannot View Expressions in Forms Exported to IDC or ASP (165193)
The information in this article applies to:
This article was previously published under Q165193 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
If you create an HTX/IDC or ASP file from a form in Microsoft Access 97,
when you open it in your Web browser you see empty fields in your IDC
datasheet, or you see #Expression in one or more fields of your ASP form.
CAUSE
Microsoft Access does not preserve expressions on forms in HTX/IDC or ASP
format.
RESOLUTION
Do not use expressions in a form control's ControlSource property on any
form you want to view in HTX/IDC or ASP format.
Instead, try to create a query that contains all of your expressions, base
your form on that query, and then bind the controls on your form to the
expressions in your query. Using this technique, your expressions will
appear in the HTX/IDC or ASP file that you create. A disadvantage of using
this method is that your expressions appear in text boxes on an ASP form,
which makes them appear to be editable; however, any changes you make to
an expression field on an ASP form will be dropped as soon as you commit
and refresh the record.
Also, Microsoft Access 97 does output expressions to files in HTML format.
If you can use a static HTML format instead of the dynamic HTX/IDC or ASP
file formats, consider saving your form as an HTML file as a workaround
that will preserve the form's expressions.
Modification Type: | Minor | Last Reviewed: | 1/26/2005 |
---|
Keywords: | kbinterop kbprb KB165193 |
---|
|