I am using A2007 and A2003.
I have two reports that could use the same source query. However, the query criteria required for each report is different. I would like to change the criteria with vba and use only one query..
Say that the source Query1, as it stands has the criteria Field_X=-1 and field_Y=null. This is ok for report_1. When I open Report_2, I would like to reverse the criteria (x=null and Y=-1). Of course, opposite action when open the first report. If doable, what would the code look like?
I looked up and tried two different solutions on various help sites and neither worked. Possible I am not using them correctly. e.g., one used a term "qdf" as if it were some standard function. My Access didn't recognize it.
Any help much appreciated.