Create temp file in users temp directory

A

Adrian

Access 2000

We currently email snapshot reports using an SMTP mailer

We want to change the SMTP mailer we use, but the one we are currently using
will generate a temporary filename in the relevant users local directory,
and the snapshot report is saved to this name before being sent as an
attachment. Something like:

strFilename = SMTPMailer.tempfilename ' for example "C:\Documents and
Settings\Adrian.Domain\Local Settings\Temp\2\TMPAE.tmp"
strFilename = Mid$(strFilename, 1, Len(strFilename) - 4) & ".snp" '
"C:\Documents and Settings\Adrian.Domain\Local Settings\Temp\2\TMPAE.snp"

DoCmd.OutputTo acOutputReport, rptToGo, acFormatSNP, strFilename, False

I would welcome any suggestions as to how to produce a temporary file name
in the users local directory such as "C:\Documents and
Settings\Adrian.Domain\Local Settings\Temp\2\TMPAE.tmp"

Thanks for any help.

Adrian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top