ACC95: Analyze It With MS Excel Drops Leading/Trailing ZeroesID: Q135547
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you use the Analyze It With Microsoft Excel command to output a report
to a Microsoft Excel (.xls) file, any leading or trailing zeroes stored in
a text field are dropped. For example, the text value "0012.3400" is output
as "12.34."
You can set the Format property of the report control that is bound to the
text field containing the leading and trailing zeros to as many zeros as
needed, for example, 0000.00. The Format pattern specified for that control
will be used to format the data in Microsoft Excel. However, the actual
data exported will not contain leading or training zeros.
Table: Table1
------------------------
Field Name: ID
Data Type: AutoNumber
Field Name: TestNumber
Data Type: Text
0012.340
0043.210
0056.780
0087.650
12.34
43.21
56.78
87.65
For more information about the Format property, search for "format," and then "Format Property," using the Microsoft Access Help Index.
Keywords : kbinterop IntpOff IsmExl5
Version : 7.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 30, 1999