J
James
How do i change the recordsource for a subreport in vba
when the report loads?
many thanks
J
when the report loads?
many thanks
J
How do i change the recordsource for a subreport in vba
when the report loads?
Okay, that's me speed reading: I was expecting a subform question ratherThanks for your reply but it comes up with the error
msg "you have entered an expresion that has an invalid
reference to the property Form/Report"
Me.mdate.Report.RecordSource = "SELECT
tblJobDetails.Partner, tblJobDetails.[M DATE ON Going
Research]FROM tblJobDetails WHERE (((tblJobDetails.[M
DATE ON Going Research]) Between #" & StartDate & "# And
#" & EndDate & "#)) ORDER BY tblJobDetails.Partner;"
Is this in the OnFormat event or something? I am not surprised that AccessAlso i have tried putting the code into mdate itself but
it has an error saying you cant change sourcecode when
printing has started.