[AccessD] OutputTo problem

Charlotte Foust cfoust at infostatsystems.com
Fri Mar 25 10:53:20 CST 2005


The date function is going to return a short date, complete with
delimiters.  If those delimiters happen to be slashes, or worse
backslashes, it causes problems.  If you format the date result as
"ddmmyyyy", or some such, it should work.

Charlotte Foust


-----Original Message-----
From: Jim Hewson [mailto:JHewson at karta.com] 
Sent: Friday, March 25, 2005 8:44 AM
To: AccessD
Subject: [AccessD] OutputTo problem



Access 2000, Snapshot Viewer.

For the last several months, the code has been working properly for
several users.

In the last couple of days a few of the users (including myself) get an
error message that reads:  "The report snapshot was not created because
you do not have enough free disk space for temporary work files."

MS Knowledge Base indicates the problem is associated by one of three
factors. 1. No file name:  the parameters for OutPutTo indicates there
is no need for a file name.  When I take out the file to output to it
works. 2.  Invalid characters - none present. 3.  Path specified does
not exist - I'm using the default path (My Documents).

Help files indicates that if a file is named with no path the default
path is used.  That is what I have been using.

Below is the code line.
    DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP,
"Corporate Top List - " & Date & ".snp", True

If I take out the date, it works.
If I remove the Output to file name, it works.

I checked references, they all seem to be there.

Why is the date function not working?
Why is this not working?

TIA
Jim



More information about the AccessD mailing list