HI BioBee
finaly I got the code to work after I reference to Microsoft Active Library 2.1
but the result is not right
here is what my data looks like
tblCourses
SeqNo Stu_Id Year Semester Course_No Curse_Name Status Grade
1 1 2011 Spring S_11_01 IT_S_11_1 Pass 3.2
2 1 2011 Spring S_11_02 IT_S_11_2 Pass 3.4
3 1 2011 Fall F_11_01 IT_F_11_1 in progress
4 1 2011 Fall F_11_02 IT_F_11_2 in progress
5 2 2010 Fall F_10_01 IT_F_10_1 Pass 2.6
6 2 2010 Fall F_10_02 IT_F_10_2 Pass 2.8
7 2 2011 Spring S_11_05 IT_S_11_5 Pass 3.1
QryTerm (from tblCourses) (3 fields)
1. Student_ID
2. TermQ: [Semester] & [Year]
3. CourseDetail: [Course_No] & "-" & [Course_Name] & ", Status " & [Status] & " - Grade:" & [Course_Grade]
field 3 will concatinate the info of 1 single course
output like
1 Spring2011 S_11_01, IT_S_11_1, Pass, 3.2
1 Spring2011 S_11_02 IT_S_11_2, Pass, 3.4
1 Fall2011 F_11_01 IT_F_11_1, in progress,
1 Fall2011 F_11_02 IT_F_11_2, in progress,
2 Fall2010 F_10_01 IT_F_10_1, Pass, 2.6
2 Fall2011 F_10_02 IT_F_10_2, Pass, 2.8
2 Spring2011 S_11_05 IT_S_11_5, Pass, 3.1
FInal Quary to concatinate all courses in a semester for specific student
QryFinal from QryTerm (3 fields)
Student_ID
TermQ
CoursesAllInOne: Conc("CourseDetail","Student_Id",[Student_Id],"QryTerm")
Output like this
1 Spring2011 S_11_01, IT_S_11_1, Pass, 3.2, S_11_02 IT_S_11_2, Pass, 3.4
1 Fall2011 S_11_01, IT_S_11_1, Pass, 3.2, S_11_02 IT_S_11_2, Pass, 3.4
2 Fall2011 F_10_01 IT_F_10_1, Pass, 2.6
2 Spring2011 F_10_01 IT_F_10_1, Pass, 2.6
it does the concatination for the first record correctly and output it for the second (same Student different Term)
then when it loop for the second student it does the same thing
any clue, what wrong I did
did I put the parameter for the conc function correctly
Please help
Thanks in Advance for your time and help
finaly I got the code to work after I reference to Microsoft Active Library 2.1
but the result is not right
here is what my data looks like
tblCourses
SeqNo Stu_Id Year Semester Course_No Curse_Name Status Grade
1 1 2011 Spring S_11_01 IT_S_11_1 Pass 3.2
2 1 2011 Spring S_11_02 IT_S_11_2 Pass 3.4
3 1 2011 Fall F_11_01 IT_F_11_1 in progress
4 1 2011 Fall F_11_02 IT_F_11_2 in progress
5 2 2010 Fall F_10_01 IT_F_10_1 Pass 2.6
6 2 2010 Fall F_10_02 IT_F_10_2 Pass 2.8
7 2 2011 Spring S_11_05 IT_S_11_5 Pass 3.1
QryTerm (from tblCourses) (3 fields)
1. Student_ID
2. TermQ: [Semester] & [Year]
3. CourseDetail: [Course_No] & "-" & [Course_Name] & ", Status " & [Status] & " - Grade:" & [Course_Grade]
field 3 will concatinate the info of 1 single course
output like
1 Spring2011 S_11_01, IT_S_11_1, Pass, 3.2
1 Spring2011 S_11_02 IT_S_11_2, Pass, 3.4
1 Fall2011 F_11_01 IT_F_11_1, in progress,
1 Fall2011 F_11_02 IT_F_11_2, in progress,
2 Fall2010 F_10_01 IT_F_10_1, Pass, 2.6
2 Fall2011 F_10_02 IT_F_10_2, Pass, 2.8
2 Spring2011 S_11_05 IT_S_11_5, Pass, 3.1
FInal Quary to concatinate all courses in a semester for specific student
QryFinal from QryTerm (3 fields)
Student_ID
TermQ
CoursesAllInOne: Conc("CourseDetail","Student_Id",[Student_Id],"QryTerm")
Output like this
1 Spring2011 S_11_01, IT_S_11_1, Pass, 3.2, S_11_02 IT_S_11_2, Pass, 3.4
1 Fall2011 S_11_01, IT_S_11_1, Pass, 3.2, S_11_02 IT_S_11_2, Pass, 3.4
2 Fall2011 F_10_01 IT_F_10_1, Pass, 2.6
2 Spring2011 F_10_01 IT_F_10_1, Pass, 2.6
it does the concatination for the first record correctly and output it for the second (same Student different Term)
then when it loop for the second student it does the same thing
any clue, what wrong I did
did I put the parameter for the conc function correctly
Please help
Thanks in Advance for your time and help
In Fact I imported the original table tblData and all three quesries and Module1 to my database, and it gave the same error when I execute either imported quesr
when I run it from your database on my desktop it works fine
Yesterday I had copy of my work database, it gave the same error, @ work after it the error and when I click OK and try to close the code widows it warn me that that will stop the debuger and reloop into the same error again, where i have to use task manager to close the DB
Any Clue
Thanks