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

Saving an access report

Status
Not open for further replies.

dhaveedh

Programmer
Aug 13, 2003
112
GB
Can anyone help with code that will save a report to a file?

Basically, I have used an access report to create a letter that will be printed off. Howvere, after printing the letter, I want to save it into a file location on my PC.

Any ideas?

Ta

KISS - Keep It Simple Sugar!
 
Private Sub QoutetoFile_Click()
' saves quote to a file
On Error GoTo Err_QoutetoFile_Click

Dim stDocName As String

stDocName = "PrintFromForm"
DoCmd.OutputTo acReport, stDocName

Exit_QoutetoFile_Click:
Exit Sub

Err_QoutetoFile_Click:
MsgBox Err.Description
Resume Exit_QoutetoFile_Click

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top