If I have an access query lets say somthing simple like customers which has criteria like Status = 4 (BTW. this would be an Access created query not something created in VBA or other places). Now, I want to base a report on that query. To open the report I have a button on an unrelated form. The code behind that button is:
DoCmd.OpenReport "Card Charge Form", acViewPreview, , "[Status ID]= 2" , acDialog
Will Access Query those already queried records, (with this example showing no records) or will it ignore that first criteria and use the one in the command button?
Essentially I am trying to base a few forms and reports on the same query, but some reports have different criteria than others.
DoCmd.OpenReport "Card Charge Form", acViewPreview, , "[Status ID]= 2" , acDialog
Will Access Query those already queried records, (with this example showing no records) or will it ignore that first criteria and use the one in the command button?
Essentially I am trying to base a few forms and reports on the same query, but some reports have different criteria than others.