D
Dave the wave
I hope someone can point out what I am missing.
I have a subform1 based on query1 and a report1 based on the same query1.
The user is allowed to filter and order the data in the subform. I want to
be able to print out a hard copy of the filtered data using report1. (For
now I am not concerned about grouping on the report.)
I'm assuming that if I copy the values for subform1.Form.Filter and
subform1.Form.OrderBy and paste them into report1.Filter and
report1.OrderBy, the ending result will be a report that contains the same
records as the screen display.
I tried referencing "subform1.Form.OrderBy" in the Open event of the report
but I either get "variable not defined" or "Can't find object.." depending
on my syntax for referencing the values.
Any help would be greatly appreciated.
I have a subform1 based on query1 and a report1 based on the same query1.
The user is allowed to filter and order the data in the subform. I want to
be able to print out a hard copy of the filtered data using report1. (For
now I am not concerned about grouping on the report.)
I'm assuming that if I copy the values for subform1.Form.Filter and
subform1.Form.OrderBy and paste them into report1.Filter and
report1.OrderBy, the ending result will be a report that contains the same
records as the screen display.
I tried referencing "subform1.Form.OrderBy" in the Open event of the report
but I either get "variable not defined" or "Can't find object.." depending
on my syntax for referencing the values.
Any help would be greatly appreciated.