A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Save a report automatically with date appended to file name



 
 
Thread Tools Display Modes
  #1  
Old July 21st, 2004, 12:11 AM
Bryan Haas
external usenet poster
 
Posts: n/a
Default Save a report automatically with date appended to file name

Is there a way to output a report using a macro and have
the file name be modified to include the current date?
(i.e. instead of report.xls have it read report071904.xls
or something along those lines)

Thank you!
Bryan
  #2  
Old July 21st, 2004, 12:50 AM
TRob
external usenet poster
 
Posts: n/a
Default Save a report automatically with date appended to file name

I have recently used the Transfer Text DoCmd attached to a
command button on a form. Below is that code. Perhaps
you can somehow fit it in a macro.

CI Export = export spec
qryExport = query


DoCmd.TransferText acExportDelim, "CI
Export", "qryExport","C:\ReportName_" & Format(Now
(), "mmddyy_hh_nnAM/PM") & ".txt"

-----Original Message-----
Is there a way to output a report using a macro and have
the file name be modified to include the current date?
(i.e. instead of report.xls have it read report071904.xls
or something along those lines)

Thank you!
Bryan
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Parameter from Form on Report sara Setting Up & Running Reports 10 July 19th, 2004 04:54 PM
Unsafe Attachments Ron Installation & Setup 2 June 9th, 2004 01:55 AM
how do you save a file with the date automaticly DonP Setting Up & Running Reports 4 June 8th, 2004 01:04 PM
Product Key for Office XP P.G.Indiana Setup, Installing & Configuration 1 June 7th, 2004 03:22 AM
Locked for editing??? Barbie Setting up and Configuration 1 April 27th, 2004 04:40 AM


All times are GMT +1. The time now is 11:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.