M
MarieT
Hello,
How can I export an amount field in an Access table to a fixed length text
file without losing the leading zeros and removing the decimal point (having
an implied decimal point)? The Export Spec file does not allow me to specify
the type of the field I am exporting. Here are the details:
I imported an amount field into a new table using a spec file where I
defined the amount field as a double. The fixed length input file has the
amount field in the following format: 9877.15 (with no leading zeros, and the
length of the field being 15).
I have to export the info in my table to another fixed length text file with
the information formatted differently. Specifically, the amount field should
be a 10-digit right justified, zero filled, implied 2 pos decimal field. So
I need the amount field to export as "0000987715".
In the query I will be exporting, I multiplied 9877.15 by 100 and formatted
the field as "0000000000" (that is 10 zeros). The query output gives me the
correct format: "0000987715"; however when i export it using a spec file,
whether from the Export menu or using TransferText, I lose the leading zeros
and get : "987715.00"
How can I preserve the format i would like: Zero filled with implied 2 pos
decimal? Any help will be really appreciated!
How can I export an amount field in an Access table to a fixed length text
file without losing the leading zeros and removing the decimal point (having
an implied decimal point)? The Export Spec file does not allow me to specify
the type of the field I am exporting. Here are the details:
I imported an amount field into a new table using a spec file where I
defined the amount field as a double. The fixed length input file has the
amount field in the following format: 9877.15 (with no leading zeros, and the
length of the field being 15).
I have to export the info in my table to another fixed length text file with
the information formatted differently. Specifically, the amount field should
be a 10-digit right justified, zero filled, implied 2 pos decimal field. So
I need the amount field to export as "0000987715".
In the query I will be exporting, I multiplied 9877.15 by 100 and formatted
the field as "0000000000" (that is 10 zeros). The query output gives me the
correct format: "0000987715"; however when i export it using a spec file,
whether from the Export menu or using TransferText, I lose the leading zeros
and get : "987715.00"
How can I preserve the format i would like: Zero filled with implied 2 pos
decimal? Any help will be really appreciated!