Exporting numeric fields with leading zeroes

P

p.armstrong

I am unable to export a query to a fixed format text file with leading
zeroes. The query will display the zeroes, but the export process strips
them off, and outputs the field as fixed length, zero suppressed, left
justified, blank filled on the right.

I need the zero filled field in order to format the output for compatibility
with a legacy application.

Thanx in advance.
 
J

John Nurick

Hi,

The usual way round this is to use the format function in a calculated
field in a query, and then export the query, e.g.

fMyField: Format([MyField], "00000000")

for an 8-character wide field with leading zeroes.
 
P

p.armstrong

Worked Great.
Thanks!

John Nurick said:
Hi,

The usual way round this is to use the format function in a calculated
field in a query, and then export the query, e.g.

fMyField: Format([MyField], "00000000")

for an 8-character wide field with leading zeroes.

I am unable to export a query to a fixed format text file with leading
zeroes. The query will display the zeroes, but the export process strips
them off, and outputs the field as fixed length, zero suppressed, left
justified, blank filled on the right.

I need the zero filled field in order to format the output for compatibility
with a legacy application.

Thanx in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top