|
-
Oct 18th, 2005, 05:44 PM
#1
Thread Starter
Member
Save file with date stamp
Hi guys,
I'm using the OutputTo function to save a report out of Access and need to save the name with a number and the current date stamp plus in this format "mm-dd-yy.rtf". Here's my OutputTo line that I'm using:
VB Code:
DoCmd.OutputTo acOutputReport, "My_View", acFormatRTF, "c:\Test\0205.rtf", True
So I need my filename to be 0205-MM-DD-YY.rtf. My brain is fried for today and I can't figure this out. Thanks!
-
Oct 18th, 2005, 05:52 PM
#2
Re: Save file with date stamp
Moved to Office Development forum
-
Oct 18th, 2005, 05:52 PM
#3
Re: Save file with date stamp
Something like:
VB Code:
DoCmd.OutputTo acOutputReport, "My_View", acFormatRTF, "c:\Test\0205" & Format(Date, "mm-dd-yy") & ".rtf", True
-
Oct 19th, 2005, 08:38 AM
#4
Thread Starter
Member
Re: Save file with date stamp (Resolved)
 Originally Posted by Bruce Fox
Something like:
VB Code:
DoCmd.OutputTo acOutputReport, "My_View", acFormatRTF, "c:\Test\0205" & Format(Date, "mm-dd-yy") & ".rtf", True
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|