Hi,
I am new to access 2003 and have been building a database to track internal projects with the help of books and internet resources.
My current scenario:
I have a report whose source is a query that a user builds on the fly via a form interface that I created. After the user hits submit on the form interface, I have vba code which builds the appropriate SQL, sends it to the stored query to apply the SQL, then closes the query window immediately. Then the report would open based on the stored query, and the user sees the result. So, the user fills out a form, and sees a report at the end with the criterias specified without being bothered by what's going on in the background.
What I would like:
My current scenario is somewhat roundabout and very slow. Is there a way to build the SQL off of the form interface, and set the code as the record source for the report, so that the report would open showing the criteria specified?
Edit: I am looking to make the report's source the SQL statement itself, that is, a way to pass the SQL statement build on the fly into the report's source at runtime.
Thanks for your help!
I am new to access 2003 and have been building a database to track internal projects with the help of books and internet resources.
My current scenario:
I have a report whose source is a query that a user builds on the fly via a form interface that I created. After the user hits submit on the form interface, I have vba code which builds the appropriate SQL, sends it to the stored query to apply the SQL, then closes the query window immediately. Then the report would open based on the stored query, and the user sees the result. So, the user fills out a form, and sees a report at the end with the criterias specified without being bothered by what's going on in the background.
What I would like:
My current scenario is somewhat roundabout and very slow. Is there a way to build the SQL off of the form interface, and set the code as the record source for the report, so that the report would open showing the criteria specified?
Edit: I am looking to make the report's source the SQL statement itself, that is, a way to pass the SQL statement build on the fly into the report's source at runtime.
Thanks for your help!
Last edited: