ACC2000: Number Field with Input Mask Appears As Text in Excel (207883)
The information in this article applies to:
- Microsoft Excel 2000
- Microsoft Access 2000
This article was previously published under Q207883 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you export a table to Microsoft Excel using the OutputTo macro action or OutputTo Visual Basic method, Number fields that have an input mask appear as Text fields in Excel.
CAUSE
When a field in a table uses an input mask, Microsoft Access outputs the
data in a custom format. The custom format causes the indexed sequential
access method (ISAM) driver for Microsoft Excel to treat the field as Text.
RESOLUTION
If you want to maintain your data as a Number field, use the Save
As or Export command on the File menu. If you only want the data in Excel to look the same as it does in Access, you can use the OutputTo action or OutputTo method.
REFERENCESFor more information about the OutputTo action, click Microsoft Access Help on the Help menu, type outputto action in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about the OutputTo method, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type outputto method in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbinterop kbprb KB207883 |
---|
|