Can i define the record source of the report in the command line opening the report ? I know how to place the record source in the OnOpen event of the report but i do not know is it posible to do it in the command line:
DoCmd.OpenReport "R1, acPreview, , "" Reports! R1.recordsource = "qry1"
Unfortunately the above command line is not accepted by Access.
DoCmd.OpenReport "R1, acPreview, , "" Reports! R1.recordsource = "qry1"
Unfortunately the above command line is not accepted by Access.