I have a SQL statement that is generated in VBA as a user completes fields on a form. A report then opens and the resulting SQL code is loaded as the report’s Record Source. It runs quite nicely. I have no trouble updating a form or report using a SQL statement from VBA. However, I recently came across another need…how can I update a query with the resulting SQL statement. Once the SQL statement is created and the form is closed, I will still need to recall the SQL until the next time the form is used. As a result, I thought updating a saved query could do this for me but I don’t know how to update a query in code. If there’s a different approach, I’m all ears.
Thanks!
Dashiell
-
Query Maker (v2000)
- This topic has 8 replies, 3 voices, and was last updated 20 years, 5 months ago.
AuthorViewing 1 reply threadAuthorViewing 1 reply thread