How do I change the file name of a report I am sending.. it defaults to the Query name that the report is based on.. I would like to change it to either a default name(Robs Report.snp) or have it use a filed name from the report(jobname.snp)..
Here is the code I am using...
Dim stDocName As String
Dim strFilter As String
stDocName = "2004 Quote Corian"
strFilter = "[Quote_Number] = Forms![2004 Quote Form Sqft price]![Quote_Number]"
DoCmd.OpenReport stDocName, acPreview, , strFilter
DoCmd.SendObject acReport, stDocName, acFormatSNP, , , , ([Homeowner_name] + " Corian Quote"), "Thank you for the opportunity to quote you on your upcoming Corian job."
Any Ideas?? or should I pound salt??
Thanks...
Here is the code I am using...
Dim stDocName As String
Dim strFilter As String
stDocName = "2004 Quote Corian"
strFilter = "[Quote_Number] = Forms![2004 Quote Form Sqft price]![Quote_Number]"
DoCmd.OpenReport stDocName, acPreview, , strFilter
DoCmd.SendObject acReport, stDocName, acFormatSNP, , , , ([Homeowner_name] + " Corian Quote"), "Thank you for the opportunity to quote you on your upcoming Corian job."
Any Ideas?? or should I pound salt??
Thanks...