macro to create a new file with today's date

P

Pam Coleman

Is there a way to write a macro that will run a query and then save it to a
server file and name it the date it was ran? Thanks,



I tried to send this once before but it looked like this question did not go
through and the my PC locked up. If it shows up, I'm sorry.
 
S

Steve Schapel

Pam,

You can output the data returned by a query as a text file, using a
TransferText action in your macro. Is that what you want? If so, you
can enter the equvalent of the following in the File Name argument of
the macro...
="D:\YourFolder\" & Format(Date(),"yyyymmdd") & ".txt"
 

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