ACC97: Queries Exported to HTX/IDC Appear with Different Format (163181)
The information in this article applies to:
This article was previously published under Q163181 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you export a table or query to the HTX/IDC web format, some of the
fields' data formatting is lost. This will happen if any of the fields in
the file you are exporting is formatted in one of the following data types:
- Currency
- Date/Time
- Percent
- True/False - Yes/No - On/Off
CAUSE
The Format property of tables in Microsoft Access is used for display
purposes only. When you export data from Microsoft Access, the actual data
in the field is exported. Dollar signs ($), and percent symbols (%) are not
exported. Date fields are exported as defined by the international
settings on your computer. Yes/No fields are exported as -1 for Yes and 0
for No.
RESOLUTION
As a workaround to this behavior, you can format the data in your columns
using the Format() function as follows:
- Follow steps 1-3 in the "Steps to Reproduce Behavior" section.
- Open the qryExport query in Design view.
- Create expressions for each of the fields that need formatting. For
example:
Order Date: Format ([OrderDate], 'short Date')
Unit Price: Format([Order Details].[UnitPrice],'Currency')
Item Discount: Format([Discount],'Percent')
Item Discontinued: format([Discontinued],'Yes/No')
- Follow steps 6-9 in the "Steps to Reproduce Behavior" section.
- View the results in a Web browser.
REFERENCES
For more information about the requirements needed for executing HTX/IDC
files on a Web browser, please see the following article in the Microsoft
Knowledge Base:
160754 Error "HTTP/1.0 403 Access Forbidden Browsing IDC Page
Modification Type: | Minor | Last Reviewed: | 1/26/2005 |
---|
Keywords: | kbprb KB163181 |
---|
|