Hello.
I have a basic report which has constant basic properties in it: Header, recordSource, box controls and other graphics which I do not want to create each time again, called rptBasicReport.
I need to be able to create reports which will be based on this basic report but will add more stuff to it, or will change some of its controls.
I know how to create a new report from scratch using the methods CreateReport, and CreateControl for each field:
As mentioned earlier, I don't need to create a new report from scratch, but to be able to add more control to already existing report which is called rptBasicReport.
I see that there Report_rptBasicReport class in my access classes.
Can I use somehow
?
Is there some other way to add controls to already existing report?
Maybe there's a way to get the underlying code of the creation of rptBasicReport - graphics and etc, and then to create a new report using them?
Can you help?
Thanks a lot.
I have a basic report which has constant basic properties in it: Header, recordSource, box controls and other graphics which I do not want to create each time again, called rptBasicReport.
I need to be able to create reports which will be based on this basic report but will add more stuff to it, or will change some of its controls.
I know how to create a new report from scratch using the methods CreateReport, and CreateControl for each field:
Code:
dim rpt as Report
set rpt = CreateReport
rpt.RecordSource = strSQL
Set db = CurrentDb
Set rs = db.OpenRecordset(strSQL)
For Each field In rs.fields
set ctl = CreateControl(rpt.Name .....
Next
As mentioned earlier, I don't need to create a new report from scratch, but to be able to add more control to already existing report which is called rptBasicReport.
I see that there Report_rptBasicReport class in my access classes.
Can I use somehow
Code:
dim rpt as Report_rptBasicReport
Is there some other way to add controls to already existing report?
Maybe there's a way to get the underlying code of the creation of rptBasicReport - graphics and etc, and then to create a new report using them?
Can you help?
Thanks a lot.