A button on my form uses code to build sql with criteria based on other tetboxes etc. The resulting recordset is passed to a subform and sometimes takes a while to run but I am happy with it.
Another button previews a report which opens with code specifying that the report recordsource = subform recordsource. This works wonderfully but why does it take so much time to produce the report as if it would be building the sql and querying the tables all over again. Can't it just take all the records in the subform and put them straight into the report.
Maybe there is a quicker way of doing it?
Thanks
Happy YN
Another button previews a report which opens with code specifying that the report recordsource = subform recordsource. This works wonderfully but why does it take so much time to produce the report as if it would be building the sql and querying the tables all over again. Can't it just take all the records in the subform and put them straight into the report.
Maybe there is a quicker way of doing it?
Thanks
Happy YN