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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoCmd.OutPutto file name with Date 1

Status
Not open for further replies.

WordTechinc

Programmer
Sep 4, 2009
38
I want to save the report with date and time to eliminate replace existed report. I am getting a message "The report snapshot was not created because you don't have enough free space for temporary work files."

Here is code;

Dim stDocName As String
Dim stFileName As String
Dim StDate As String

StDate = Now()

stFileName = "c:\NCTAX\Report\PaymentInfomation_RealEstate-" & StDate & ".snp"

stDocName = "rptRETBankRequestPaymentInfo"

DoCmd.OutputTo acReport, stDocName, "Snapshot Format (*.snp)", stFileName
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top