Subreport RecordSource Property 2

K

Ken Snell

Your expression will return either a True or False result, not a
RecordSource string.

To set the RecordSource of a subreport:

Me.rpt_Employee_Info_Sub.Report.RecordSource = "q_rptEmployeeInfoSub"
 
S

Scott

from my report's open event, i'm using the below code to change the
recordsource of my subreport. it gives me an error saying "expression has an
invalid reference to the property form/report"

can someone check my syntax?


Me.rpt_Employee_Info_Sub.Report.RecordSource = Me.RecordSource =
"q_rptEmployeeInfoSub"
 
Top