TransferText

  • Thread starter Dimitris Nikolakakis
  • Start date
D

Dimitris Nikolakakis

I want to export the result of a query to a text file and I have used the
'DoCmd.TransferText'.

All fields are left justified in the ASCii file.

How can I right justified some of them? For example, I want the Quantity,
Value to be right justified.


Thanks
 
J

John Nurick

Hi Dimitris,

Use calculated fields like these in the query:

fNumberField: Format([NumberField], "0000000")

fNumberField: Right(" " & Format([NumberField],
"#,##0.00"), 10)

fTextField: Right(" " & [TextField], 10)
 

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