Re: Exporting Data as text file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



To have the spaces replaced with zeroes, write a query that uses the Format
function on the numeric fields (not the Format property), and work with that
query rather than the table.

You should be able to use the TransferText method, but if that doesn't give
you a satisfactory result, you can always use the VBA Print # statement (in
conjunction with the Open and Close statements)

If you want to give your users the ability to choose where the file should
be put, consider using http://www.mvps.org/access/api/api0001.htm at "The
Access Web" rather than any other approach.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"wasimsono via AccessMonster.com" <u7424@uwe> wrote in message
news:69cea0b3c62e4@xxxxxx
Dear All

I want to export the data as text file but I want that only data should
trasfer and no spaces should transfer.Spaces in fileds ( e.g. the field
length is 8characte and the data is 456 then it should be as 00000456)
should
be replaces with zeros. This output file is required for COBOL processing.

Remember that it should all be done just like for a new user. The user Oly
select or click any button for 'Export' or 'Backup' and the all workd done
behind the scene.

Any help regarding this is highly appreciated.


Thanks in advance.


Wasim

--
Wasim Yasin

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-externaldata/200611/1



.



Relevant Pages

  • Re: Export problems
    ... Create a query and use the Format function in the query to convert the ... numeric fields to strings. ... Doug Steele, Microsoft Access MVP ...
    (microsoft.public.access.reports)
  • Re: Truncated Text Box on Report
    ... >> Have you set any value in the Format property of the text box? ... >> MS Access MVP ... This concatenated field is attached in a query by a job ... The report has no groupings, ...
    (microsoft.public.access.reports)
  • RE: Selecting Records base on current month
    ... I have created a button where it will open up a report based on the month ... I have a query that pulls information from three tables. ... based on the selection from the combobox. ... look for Format Property - Date/Time Data Type. ...
    (microsoft.public.access.reports)
  • Re: problem getting currency formatting
    ... originates in a query. ... I did try to set the format property as currency in ... format choices such as General Number, Fixed and Currency appear in the ...
    (microsoft.public.access.forms)
  • Re: Report field is truncated?
    ... the Format property of the field in the table, ... field in the query, or the Format propery of the text box on the report. ... memo field. ... report field properties. ...
    (microsoft.public.access.reports)