Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Placing fields in precise length when exporting? 1

Status
Not open for further replies.

ffleitas

Technical User
Mar 15, 2001
85
US
Hello programmers,

When I export a report to an ASCII text file, I need to place them in an exact size and order. For example,
Client Number, Client Customer #, Client Name
Size 4 , Size 8, , Size 15

1234SC2345XXAcmeXMotorXXXXX

Please note that X's are spaces.

How can I do this with the parameters in the report?

Thanks,
Felix
 
Hi

One way would be to use DoCmd.TransferText, to export the underlying query (of the report) results as a text file. Using the Import/Export Specification you can determine if the style of the exported file is to be fixed witdth (as you want) or csv etc Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top