Autonumber records

N

Nai

I need to assign numbers to a set of records within a group as follow:

Original Table T
colA colB
john green
john yellow
john red
john blue
mary red
mary black
mary blue

Query:
colA colB(ascending) colC(auto number)
john blue 1
john green 2
john red 3
john yellow 4
mary black 1
mary blue 2
mary red 3

Please help, thanks..
 
J

Jeff Boyce

I don't understand the algorithm by which you decided which row gets which
number.

Note that in MS Access, "Autonumber" means a long integer
automatically-generated by Access.

Are you saying that you want to have a number assigned as part of a query?
If you assign "1" to two different rows, what does "1" mean (i.e., it isn't
unique)?

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
T

Tom Wickerath

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top