B
Brian
My users would like to be able to print a report based on criteria they
selected by right-clicking various fields on a continuous form. I have
already written the report, but I need to know how to pass the Filter and
OrderBy parameters to the report.
In VBA I wrote:
reports(reportname).Filter = formname.filter
reports(reportname).OrderBy = formname.orderby
This works except that the string that passes to the report includes the
form name, thereby rendering the string unusable since the report has a
different name than the form.
Therefore, I think my question really is...how do I parse out the form name
from the strings I am passing to the report.
Or my other question would be, how else can I do this?
selected by right-clicking various fields on a continuous form. I have
already written the report, but I need to know how to pass the Filter and
OrderBy parameters to the report.
In VBA I wrote:
reports(reportname).Filter = formname.filter
reports(reportname).OrderBy = formname.orderby
This works except that the string that passes to the report includes the
form name, thereby rendering the string unusable since the report has a
different name than the form.
Therefore, I think my question really is...how do I parse out the form name
from the strings I am passing to the report.
Or my other question would be, how else can I do this?