D
dazoloko via AccessMonster.com
Dear All
This one is a belter, Im hoping somebody out there can help.........
What I want to be able to do is...............
I have a database which holds information on a client and the type of service
they have. I want the primary key to be made up of a combination of fields eg.
Each person has a unique 6 digit identity number but I cant use that as the
primary key because they could be on the system more than once because they
could have more than one service.
There are four Service Types Weekly, Short Break, Equipment, Talking Books
So the first part of the unique identifier for Example would be 111111W for a
Weekly Service
The same person could also have a Talking book there fore there would also be
a record 111111T
That I think I can manage. Where Im having the difficulty is They could end
their service and start it again, there for I would like to add some sort of
count so the first time a record is created for a particular service it has
the suffix of 1 and if that service is ended and then started again the
second time the number and service is created it would give it a suffix of 2.
Does this make sense ? If so, is it possible and if it is possible, any
pointers ?
Heres hoping.
D
This one is a belter, Im hoping somebody out there can help.........
What I want to be able to do is...............
I have a database which holds information on a client and the type of service
they have. I want the primary key to be made up of a combination of fields eg.
Each person has a unique 6 digit identity number but I cant use that as the
primary key because they could be on the system more than once because they
could have more than one service.
There are four Service Types Weekly, Short Break, Equipment, Talking Books
So the first part of the unique identifier for Example would be 111111W for a
Weekly Service
The same person could also have a Talking book there fore there would also be
a record 111111T
That I think I can manage. Where Im having the difficulty is They could end
their service and start it again, there for I would like to add some sort of
count so the first time a record is created for a particular service it has
the suffix of 1 and if that service is ended and then started again the
second time the number and service is created it would give it a suffix of 2.
Does this make sense ? If so, is it possible and if it is possible, any
pointers ?
Heres hoping.
D