richmond88
IS-IT--Management
I have reports that can be run from a number of Forms and I dont know which is the best way to feed the data to the reports. The criteria can also change based up on which field the user wants to report on. Hopefully someone can give me some advice on the best way to do it.
Should I :-
1) Have a tempprint table and Insert the data into that table from the Form that executes the report -
sql = "INSERT INTO tblTest (VadarStudentID, SetID)" & _
"SELECT * From Query4 Where " & _
"SetID =120"
DoCmd.RunSQL (sql)
2) Have a hidden Variables Form or Global variables where I store the criteria and execute the query from the report.
I hope that this makes sense and that someone can give me the best and most efficient way of achieving my aim.
Thanks
Chris
Should I :-
1) Have a tempprint table and Insert the data into that table from the Form that executes the report -
sql = "INSERT INTO tblTest (VadarStudentID, SetID)" & _
"SELECT * From Query4 Where " & _
"SetID =120"
DoCmd.RunSQL (sql)
2) Have a hidden Variables Form or Global variables where I store the criteria and execute the query from the report.
I hope that this makes sense and that someone can give me the best and most efficient way of achieving my aim.
Thanks
Chris