Exporting to flat text file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to export a table to a flat text filw with fixed widths and would
like to get the last column to right justify. Any suggestions would be
greatly appreciated
 
Use a calculated field. Add the number of spaces (or other characters) to
the beginning of the string and then take the rightmost number of
characters.

Example
Assumption:
--Pad with spaces
--Length should be 25 characters

Field: PaddedField: Right(String(25, " ") & [TheField],25)
 
Will this work for you? Create a report and export the report after you've
formatted it the way you want. Otherwise, you can create a query where the
fields are padded and export the query.
 

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

Back
Top