saving a report as SNP

N

NNlogistics

DoCmd.OutputTo acOutputReport, stDocName, "snapshot format", "OpenRMAAging" &
Date & ".snp"

I am Atempting to save a reprt as a .snp file an what I would like to do is
save it with todays date. It works, however, it puts the slashes in and that
doesnt play well with windows. How can I use the date to stamp the file.

also

If I use the full path \\servername\dira\dirb\"OpenRMAAging" & Datein
correct format & ".snp", will it just write it to that directory?
 
R

Rick Brandt

NNlogistics said:
DoCmd.OutputTo acOutputReport, stDocName, "snapshot format",
"OpenRMAAging" & Date & ".snp"

I am Atempting to save a reprt as a .snp file an what I would like to
do is save it with todays date. It works, however, it puts the
slashes in and that doesnt play well with windows. How can I use the
date to stamp the file.

also

If I use the full path \\servername\dira\dirb\"OpenRMAAging" & Datein
correct format & ".snp", will it just write it to that directory?

DoCmd.OutputTo acOutputReport, stDocName, "snapshot format", "OpenRMAAging"
& Format(Date,"yyyy-mm-dd") & ".snp"
 

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