G
Guest
I'm just looking for a clever way to pass a WHERE clause to a report that I
am sending via SendObject.
Real-world: I want to e-mail statements. I have already written the
recordset loop that goes through all the customers that have e-mail addresses
and builds a WHERE clause (based on selection criteria on a form). However, I
thought I was just going to be able to pass that along to the report in my
SendObject acSendReport..., I realized that I had made a rather shortsighted
assumption here.
So, other than setting the report's RecordSource as a query and rebulding
the query's SQL on the fly, is there any way to pass either an argument or
WHERE clause to the report?
am sending via SendObject.
Real-world: I want to e-mail statements. I have already written the
recordset loop that goes through all the customers that have e-mail addresses
and builds a WHERE clause (based on selection criteria on a form). However, I
thought I was just going to be able to pass that along to the report in my
SendObject acSendReport..., I realized that I had made a rather shortsighted
assumption here.
So, other than setting the report's RecordSource as a query and rebulding
the query's SQL on the fly, is there any way to pass either an argument or
WHERE clause to the report?