DoCmd.OpenReport--where condition

rickmays

New member
Local time
Today, 12:53
Joined
Dec 23, 2008
Messages
5
Does the where condition in the OpenReport method replace the report's underlying record source query or just change/add to it. I think I am seeing evidence of the latter, but can't find it documented anywhere.

Thanks!
 
It changes it by adding another condition/criteria to the recordsource
 
Hi and thank you for your quick response. Do you have any idea where in MSDN that may be documented? I have searched, but the description I have found is very brief:

WhereConditionOptionalVariantA string expression that's a valid SQL WHERE clause without the word WHERE.


Thanks!
 
no, but that statement itself shows that it is a WHERE clause, thereby not replacing the querying, just changing it
 
Interesting. I've never seen a sql statement with multiple where clauses before. It must be ANDing the wherecondition with the query that's in the report's record source.
 
Interesting. I've never seen a sql statement with multiple where clauses before. It must be ANDing the wherecondition with the query that's in the report's record source.

I believe that that is what it does.. just throws that little &" And blah=" blah or whatever you have in there
 

Users who are viewing this thread

Back
Top Bottom