E
Edgar
Hello Everybody, Please any help on This:
I have a base report which I reuse for different type of information, I just
instanciate it and reformat some fields as required. And when i try to send
it by mail, on snp format, Access attaches the base (original) report. It's a
problem cause the base report has for example 8 pages, and the instantiated
report that i get on screen has 2 o 3, pages. Which is what i want and need.
This is how it goes:
Public MyReport as report
sub Routine()
set MyReport = Report_Base
MyReport.controlsource = "Data1"
' some criteria is define to open the report, which shortens it
docmd.open acreport, MyReport.name, "criteria"
end sub
' Now a string to send it with another routine
DoCmd.SendObject acReport, "", "SnapshotFormat(*.snp)", "", "", "",
MyReport.Name, TheMessage, True, ""
***after this, access loads the base report on Outlook. Of course it does,
cause MyReport.name is "Base", which is the name for Report_Base. The
question is how can i order access to load just the new report, i mean the
instanciated one, or the result that i get on screen and not the base
report?. I can't change the name for the instanciated report and get it from
random memory or something like that.
Please any recomendation would be very appreciated
I have a base report which I reuse for different type of information, I just
instanciate it and reformat some fields as required. And when i try to send
it by mail, on snp format, Access attaches the base (original) report. It's a
problem cause the base report has for example 8 pages, and the instantiated
report that i get on screen has 2 o 3, pages. Which is what i want and need.
This is how it goes:
Public MyReport as report
sub Routine()
set MyReport = Report_Base
MyReport.controlsource = "Data1"
' some criteria is define to open the report, which shortens it
docmd.open acreport, MyReport.name, "criteria"
end sub
' Now a string to send it with another routine
DoCmd.SendObject acReport, "", "SnapshotFormat(*.snp)", "", "", "",
MyReport.Name, TheMessage, True, ""
***after this, access loads the base report on Outlook. Of course it does,
cause MyReport.name is "Base", which is the name for Report_Base. The
question is how can i order access to load just the new report, i mean the
instanciated one, or the result that i get on screen and not the base
report?. I can't change the name for the instanciated report and get it from
random memory or something like that.
Please any recomendation would be very appreciated