I have this code. Which modifies Query2 and then open it in preview format. I want to make this query datasource of a report. I want to show this modifies query through report.Is it possible
CurrentDb.QueryDefs("Query2").SQL = "SELECT " & strList & " from Store_t where " & GetCriteria()
DoCmd.OpenQuery "Query2", acViewPreview, acReadOnly
Any suggestion is most appreciated.
CurrentDb.QueryDefs("Query2").SQL = "SELECT " & strList & " from Store_t where " & GetCriteria()
DoCmd.OpenQuery "Query2", acViewPreview, acReadOnly
Any suggestion is most appreciated.