aqif
09-23-2001, 06:01 PM
Hi http://www.access-programmers.co.uk/ubb/smile.gif
I am trying to figure out how many people are left in query. My problem is something like that.
ID Name DOB
1 A 1/1/01
2 B 2/2/01
3 C 3/2/01
4 D 4/4/01
The query I want to write will give an output like
ID Name DOB NumberLeft
1 A 1/1/01 4-1=3
2 B 2/2/01 4-2=2 or 3-1=2
3 C 3/2/01 4-3=1
4 D 4/4/01 4-4=0
*Where 4 is the total count of the query.
Is there anyway that I could work myself backward?
Cheers!
Aqif
I am trying to figure out how many people are left in query. My problem is something like that.
ID Name DOB
1 A 1/1/01
2 B 2/2/01
3 C 3/2/01
4 D 4/4/01
The query I want to write will give an output like
ID Name DOB NumberLeft
1 A 1/1/01 4-1=3
2 B 2/2/01 4-2=2 or 3-1=2
3 C 3/2/01 4-3=1
4 D 4/4/01 4-4=0
*Where 4 is the total count of the query.
Is there anyway that I could work myself backward?
Cheers!
Aqif