I have a query named "Tuition Calculation" saved in the database.
In the code, the criteria of the query need to be added/modified and be saved for use of another auto-generate report.
Is DoCmd.OpenQuery the right one to use? it seems not work
Below is the what I tried, please advice.. thanks :-)
In the code, the criteria of the query need to be added/modified and be saved for use of another auto-generate report.
Is DoCmd.OpenQuery the right one to use? it seems not work
Below is the what I tried, please advice.. thanks :-)
Code:
DoCmd.OpenQuery "Tuition Calculation", acViewDesign, acAdd [Queries]![Tuition Calculation].Criteria = "Year=" & Year & " and Semester=" & Semester DoCmd.Save acQuery DoCmd.Close acQuery, "Tuition Calculation"
Comment