A family of Microsoft relational database management systems designed for ease of use.
Filtername refers to stored Filter basically the name of a query. Frankly I've never used it and am not sure how or if it works
WhereCondition is the same as a SQL WHERE clause without the WHERE keyword
OpenArgs is totally different, it simply passes a value to the object being opened.
If you are generating a query in code using a QueryDef, then you are probably building your WHERE clause as part of that query in code. Save some steps and just buld the WHERE clause and pass that using the WHERECondition argument. That's how I always do it.
Another point, rather than a long set of ANDs, this would be easier by using:
strFilter = "([Training Event] NOT IN(44,49,53,54,57,58,59,60,62,63,68) AND " & _
"(Status ='30 days or less' " & _
"Or Status ='incomplete' " & _
"Or Status ='Overdue'" & ") "
Then use:
DoCmd.OpenReport reportName, acViewReport,, strFilter
I don't see the neccessity of using Query Def unless you need to save the query for some other purpose and I see no reason for opening a Recordset at all.