The Short version...
How do I pass a value calculated in a report text box and pass it back to the form that called it. Report text boxes have no .text or .value properties.
e.g. txtOverallAvgScore.control scorce =Avg([Score])
The Long version...
I have a report that shows detailed information and then give a summary line per group, and then the final summary at the very end for the given period of time they selected. The report makes a pdf and then code writes the web page to add it the user’s downloadable reports.
We have over 50 users that have 20 or so reports; each report has this final summary I want to add to the web page.
I would like to pass the value from the final summary back to the form that called the report so I can use it to add to the code for the web page so they know the ‘big picture’ of how they are doing. The SQL goes something like this (incase it matters)...
SELECT EmpID, EmpName, Division, Section, Score, Date, FROM EmployeePerformance;
The report is grouped like this (incase it matters)...
Overall header
- Division header
-- Section header
--- Detail line
-- Section footer
- Division footer
Overall footer
On the overall group footer of the report I want to get the value from the report object txtOverallAvgScore. Since that is the number most of the people care the most about. The object doesn’t have a .value or a .text property, how can I grab it so I can pass it to back to the form.
I know I can redo the query in the program but it would take more time to do that and they are already whining and complaining about how long their reports take to run and only calculating it once would make a heck of a lot more sense.
I hope this is great question because I need a great answer (and I have searched thought this but couldn’t find the a question like this.)
How do I pass a value calculated in a report text box and pass it back to the form that called it. Report text boxes have no .text or .value properties.
e.g. txtOverallAvgScore.control scorce =Avg([Score])
The Long version...
I have a report that shows detailed information and then give a summary line per group, and then the final summary at the very end for the given period of time they selected. The report makes a pdf and then code writes the web page to add it the user’s downloadable reports.
We have over 50 users that have 20 or so reports; each report has this final summary I want to add to the web page.
I would like to pass the value from the final summary back to the form that called the report so I can use it to add to the code for the web page so they know the ‘big picture’ of how they are doing. The SQL goes something like this (incase it matters)...
SELECT EmpID, EmpName, Division, Section, Score, Date, FROM EmployeePerformance;
The report is grouped like this (incase it matters)...
Overall header
- Division header
-- Section header
--- Detail line
-- Section footer
- Division footer
Overall footer
On the overall group footer of the report I want to get the value from the report object txtOverallAvgScore. Since that is the number most of the people care the most about. The object doesn’t have a .value or a .text property, how can I grab it so I can pass it to back to the form.
I know I can redo the query in the program but it would take more time to do that and they are already whining and complaining about how long their reports take to run and only calculating it once would make a heck of a lot more sense.
I hope this is great question because I need a great answer (and I have searched thought this but couldn’t find the a question like this.)