A family of Microsoft relational database management systems designed for ease of use.
I don't understand it because Ii see no error in the code nor do I see any reason for it.
What is the SQL for qryStudentProgress_FIRST_SIMPLE_QUERY?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello everyone!
I want to make an application for keeping track of students’ progress marks each month of the year using Access 2010. Suppose I have 10 literacy centers in 10 different locations each with 35-40 students enrolled. I want to generate a monthly Access report showing the progress of each student in each of the subjects taught.
I have designed forms for entering details of each center, instructor and student saved in separate tables. All I need to do is find a way to generate month-wise students’ progress reports for each of the 10 literacy centers to be handed over to the center manager.
What would be the best way this could be done using Access 2010?
Thank you.
~~Maneesh
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
I don't understand it because Ii see no error in the code nor do I see any reason for it.
What is the SQL for qryStudentProgress_FIRST_SIMPLE_QUERY?
Here's the code behind the generate report button:
Private Sub Command41_Click()
Dim strSQL As String
strSQL = "DELETE * FROM tmpProgress;"
CurrentDb.Execute strSQL, dbFailOnError
strSQL = "INSERT INTO tmpProgress (CenterCode, StudentID, GradeScore, CourseName) " & _
"SELECT CenterCode, StudentID, GradeScore, CourseName " & _
"FROM qryStudentProgress_FIRST_SIMPLE_QUERY; "
CurrentDb.Execute strSQL, dbFailOnError
DoCmd.OpenReport "frmSimpleUsingCrosstabasSource", acViewPreview, , "CenterCode= " & Me.Combo15
End Sub
I'm having a lot of trouble with this code behind the generate report button. If I put the Debug.Print command right before the second execute statement, the immediate window points to the strSQL statement with :
"INSERT INTO tmpProgress (CenterCode, StudentID, GradeScore, CourseName) " & _
"SELECT CenterCode, StudentID, GradeScore, CourseName " & _
"FROM qryStudentProgress_FIRST_SIMPLE_QUERY; "
If I put the cursor over the dbFailOnError it looks like this:
I fail to understand the error.
Show me the code behind the Generate Report button. I can't understand why this doesn't work for you. It works fine for me.
Okay, now I get it, the Query1 was just used as an example while the code snippet does the deleting and inserting into the tmpProgress table. Okay, so now I wish to run the report from the main form without opening all the queries. Just by selecting the generate report button. But once I do, it gives me this error, which should not be. It should just open the report based on the center code. Here's the error:
I get this error repeatedly whenever I press the generate button.
***Personal information deleted by the moderator. Please see the Microsoft Community Frequently Asked Questions for more information on how you can protect your privacy.***
Query 1 was just an example. Its the query that is generated in the code snippet I gave you. You really have to follow what I have told you, don't forget previous instructions.
So, AGAIN, the Generate Report code does the following:
This was all laid out in detail in my response on Jan 3.
The reason for tmpProgress was because for some reason the second query that was based on the original crosstab was not working as it should. So I created the temp table as a workaround.