davidfourie
New member
- Local time
- Today, 22:38
- Joined
- May 27, 2009
- Messages
- 5
In a table I have several different departments.
Depending on the department I would like to have seperate autonumbers.
The tables primary key will be a combined primary key Department and ID
table = people[Department,ID,Name]
So the data would be something like:
Accounts, 1, Sally
Accounts, 2, Ben
Accounts, 3, Dave
HR, 1, Fred
IT, 1, Sean
IT, 2, Brenda
IT, 3, Lyn
HR, 2, Davina
Accounts, 4, Lisa
HR, 3, John
I want the autonumber to be automatic starting for each department
Depending on the department I would like to have seperate autonumbers.
The tables primary key will be a combined primary key Department and ID
table = people[Department,ID,Name]
So the data would be something like:
Accounts, 1, Sally
Accounts, 2, Ben
Accounts, 3, Dave
HR, 1, Fred
IT, 1, Sean
IT, 2, Brenda
IT, 3, Lyn
HR, 2, Davina
Accounts, 4, Lisa
HR, 3, John
I want the autonumber to be automatic starting for each department