A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Save a report as .snp



 
 
Thread Tools Display Modes
  #1  
Old July 26th, 2007, 10:48 AM posted to microsoft.public.access.reports
davea
external usenet poster
 
Posts: 18
Default Save a report as .snp

Hi

I am trying to save a copy of a report as a .snp file using vb code
after it has been printed. I want to use a field (control) in the
report along with the current date as the name of the saved file so
that the user doesn't have to create the name by themselves

e.g. the code I'm trying to get should work like this:

DoCmd.Close acReport, rpt.Name, acSaveYes
'then save the report to C:/shared/temp/.. and name the file
[applicationnumber] & todays date

Any suggestions please?

  #2  
Old August 14th, 2007, 10:20 PM posted to microsoft.public.access.reports
pepper
external usenet poster
 
Posts: 77
Default Save a report as .snp

Try this, a variation of what I have to do every day in my reporting.

DoCmd.OutputTo acOutputReport, "rptElapsed", acFormatSNP, c:\Report\ &
Format(Now(), "MMDDYYYY") & "_Month_MTD.snp"

"davea" wrote:

Hi

I am trying to save a copy of a report as a .snp file using vb code
after it has been printed. I want to use a field (control) in the
report along with the current date as the name of the saved file so
that the user doesn't have to create the name by themselves

e.g. the code I'm trying to get should work like this:

DoCmd.Close acReport, rpt.Name, acSaveYes
'then save the report to C:/shared/temp/.. and name the file
[applicationnumber] & todays date

Any suggestions please?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.