What are you trying to count? Number of examcodes for each student?
line 10: you want to use the == operator there, not the assignment = operator.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
You should increment count only inside the second if statement.
ithelp
Nearly a Posting Maven
2,230 posts since May 2006
Reputation Points: 769
Solved Threads: 128