Hi all,
I'm new to access-programmers (and relatively new to access!!). I have an issue which i'm stuck on at the moment - and I cant seem to find a resolution!
I would like to run a counter on records within a query which meet a certain criteria. And if record meets a different criteria, then i would like to restart counting from zero.
For example, I would like the counter to increment by 1 for every record that is a 'Pass', then when a 'Fail' recorded the counter reverts back to zero. I'm basically trying to record how many 'Pass' marks an idividual gets in a row.
Im not sure if i'm barking up the wrong tree, but i have the idea that a loop statement would be the most suitable - however i'm not sure on the syntax??
Any help or a steer in the right direction would be much appreciated,
Thanks in advance.
I'm new to access-programmers (and relatively new to access!!). I have an issue which i'm stuck on at the moment - and I cant seem to find a resolution!
I would like to run a counter on records within a query which meet a certain criteria. And if record meets a different criteria, then i would like to restart counting from zero.
For example, I would like the counter to increment by 1 for every record that is a 'Pass', then when a 'Fail' recorded the counter reverts back to zero. I'm basically trying to record how many 'Pass' marks an idividual gets in a row.
Im not sure if i'm barking up the wrong tree, but i have the idea that a loop statement would be the most suitable - however i'm not sure on the syntax??

Any help or a steer in the right direction would be much appreciated,
Thanks in advance.