Hello,
In an Access 2003 Project that uses a SQL Server 2000 database as its
data source, I am attempting to set the RecordSource property of a sub
report called 'RptTeacherHist ory2' that appears in several different
'main' reports. I have tried to use the following code;
Me.RptTeacherHi story2.Properti es("RecordSourc e") = "EXEC
RCTeacherHistor y_sp " & Me.Permnum
'RCTeacherHisto ry' is a proc that takes 'permnum' as a single
parameter. The link Child and Master fields are 'permnum'.
I am trying to use this code on the On Format event of the Report
Header in each of the main forms, but apparently, this is not the way
to reference the RecordSource property of the Sub Report.
Is this something that is possible to do, and if so, how can I do it?
Thanks for your help!
CSDunn
In an Access 2003 Project that uses a SQL Server 2000 database as its
data source, I am attempting to set the RecordSource property of a sub
report called 'RptTeacherHist ory2' that appears in several different
'main' reports. I have tried to use the following code;
Me.RptTeacherHi story2.Properti es("RecordSourc e") = "EXEC
RCTeacherHistor y_sp " & Me.Permnum
'RCTeacherHisto ry' is a proc that takes 'permnum' as a single
parameter. The link Child and Master fields are 'permnum'.
I am trying to use this code on the On Format event of the Report
Header in each of the main forms, but apparently, this is not the way
to reference the RecordSource property of the Sub Report.
Is this something that is possible to do, and if so, how can I do it?
Thanks for your help!
CSDunn
Comment