Counting up

Chrisopia

Registered User.
Local time
Today, 01:42
Joined
Jul 18, 2008
Messages
279
How does the index count up - it uses autonumber right?

How can I use autonumber on a query to count up, but not like 1,2,3,4,5... but it counts similar data, like A 1,2,3,4,5... B 1,2,3,4... etc...

does this make sense?


(see image for example)
 

Attachments

  • autonumber.jpg
    autonumber.jpg
    69.8 KB · Views: 97
Unfortunately you can't do this with autonumber. You would need to write a VBA procedure that finds the next number for a given letter or gives 1 if this is first time a letter is used. You could also calculate the value using a query and a DMAX function.
 
oh thats good then - what does Dmax do? Ive been told about it before and looked into it but DMAX didn't look relevent?
 

Users who are viewing this thread

Back
Top Bottom