Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Output Files 1

Status
Not open for further replies.

dek394

Technical User
Apr 16, 2003
17
US
I am trying to output a report that I have automatically to a folder in a snapshot form. I am trying to get this file to save as the date, but with my current code it saves as "=date().snp" instead of "5/8/2003.snp" Here is my code:

DoCmd.OutputTo acOutputReport, "NAS Inventory/Capital by Product Family", "Snapshot Format", "C:\Documents and Settings\kingd4\My Documents\=Date().snp"

Does anyone have any ideas on how to fix this problem?
Thanks
Dennis
 
You're close.
Code:
DoCmd.OutputTo acOutputReport, "NAS Inventory/Capital by Product Family", "Snapshot Format", "C:\Documents and Settings\kingd4\My Documents\" & Format(Date(),"mm-dd-yyyy") & ".snp"

--
Find common answers using Google Groups:

Corrupt MDBs FAQ
 
Nice, that worked great. I think the date format that I was using was giving me errors because of the "/"'s in the name. Anyways, thanks again.

Dennis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top