Save Report as a .bat

  • Thread starter Thread starter The Boondock Saint
  • Start date Start date
T

The Boondock Saint

Is there a way I could have a button on a form, which saves a report into a
..bat file?

or even if it could save it as a .txt file cause i can automate a task to
rename the bat file before i run it.

Cheers Saint
 
Ive got it working in a Module

With
Sub exporttxt()
DoCmd.OutputTo acReport, "Thumbnail Query", acFormatTXT, "prothumb.bat",
False
End Sub

But how can i get a button to run that command?
 
Ive got it working in a Module

With
Sub exporttxt()
DoCmd.OutputTo acReport, "Thumbnail Query", acFormatTXT, "prothumb.bat",
False
End Sub

But how can i get a button to run that command?

Put the code into the Click event of the button.


John W. Vinson[MVP]
 
You do realize that the content of the .bat file will have to be MS-DOS
batch commands?

Is that what you get from the query? MS-DOS batch commands?

TC (MVP Access)
http://tc2.atspace.com
 

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