Export data to Text file

  • Thread starter Thread starter Adam
  • Start date Start date
A

Adam

Hi,

I want to export data from a query or table to a text file
by using a command button on a form.

I know how to do this from the Menu and to send data from
a report ( ie DoCmd.OutputTo acReport, stDocName) , but I
would like to automate a procedure in relation to queries
and tables.

Using VB Editor, how do I do this may I ask?

Thank you.

Adam
 
Adam said:
Hi,

I want to export data from a query or table to a text file
by using a command button on a form.

I know how to do this from the Menu and to send data from
a report ( ie DoCmd.OutputTo acReport, stDocName) , but I
would like to automate a procedure in relation to queries
and tables.

Using VB Editor, how do I do this may I ask?

Thank you.

Adam

See the online help for DoCmd.TransferText.
 

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