How do I create a report using a recorset in visual basic? When I try to set the recordsource to the recordset I get a type mismatch error.
Reports!GradeResults.RecordSource = rst
What exactly are you trying to do? If you have a report that you need to limit which items are shown at run-time, you can set the Filter property to an SQL WHERE clause without the word WHERE.
dds82,
I am trying to write a test eveluation report. I am using 4 tables. 1.Correct answers 2. students test answers 3. a table with student's profiles 4.test results table
I have written code to see which test is taken, compare correct answers with student's answers and write to a simple test results table containing student number, date, test taken and final grade.
I am using 4 recordsets to work withthe tables. In addition, i have used a matrix to list the incorrect answers and give the corrections and study resources.
I want to produce a report for the student with his name, date, grade and a list of incorrect answers. The body of the report will list the corrections and study resources.
The code I have written places all of the report information in a single recordset but I can't get the report to use the information in the recordset without putting it in another table.
I was hoping to avoid the step of making a tempory table. I tried to set the report recordsource to the recordset. That's when I get the type mismatch error.
Thanks
Bill
ddds82,
No, The table Test Results only has student name, date, test and grade.
The infomation on questions missed, study guides etc. do not need to be stored.
All of the other data is looked up or calculated within the module. I guess I need ti know how to create a report using the data within the module.
Thanks,
Bill
Thanks to Ben also
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.