Oops ... forgot about posting commercial stuff here! Sorry <br>
<br>
Anyway, back to the problem ...<br>
<br>
I'm trying to get a database up and running which is proving slightly tricky.<br>
<br>
Basically what the database has to have is:<br>
<br>
A Client Ref which is made up of 3 pieces of info.<br>
<br>
1. The first 3 letters of the last name.<br>
2. A 2 digit number - the client number.<br>
3. A 3 digit number - the "file number".<br>
<br>
The client number must increment by 1 for each new client last name i.e. <br>
<br>
Murphy --> Client ID --> MUR-01 (Only one Murphy)<br>
Lyons --> Client ID --> LYO-01 (Only one Lyons)<br>
Murphy --> Client ID --> MUR-02 (two different Murphys)<br>
Jack --> Client ID --> JAC-01 (Only one JAck)<br>
Murphy --> Client ID --> MUR-03 (three different Murphys)<br>
<br>
The third piece of the Client Ref - the filenumber which will increment by one for each new entry:<br>
<br>
E.g. <br>
Murphy --> MUR-01 --> 1st file --> Client Ref -->MUR-01-001<br>
Murphy --> MUR-01 --> 2nd file --> Client Ref -->MUR-01-002<br>
Murphy --> MUR-02 --> 1st file --> Client Ref -->MUR-02-001<br>
etc etc.<br>
<br>
As well as having the numbers increment automatically (and storing all the Client ID and Client Ref), I have to allow for users to enter previous clients so the starting point for Murphy could MUR-12 etc.<br>
<br>
I'd appreciate any help!<br>
<br>
Thanks,<br>
<br>
Kevin
<br>
Anyway, back to the problem ...<br>
<br>
I'm trying to get a database up and running which is proving slightly tricky.<br>
<br>
Basically what the database has to have is:<br>
<br>
A Client Ref which is made up of 3 pieces of info.<br>
<br>
1. The first 3 letters of the last name.<br>
2. A 2 digit number - the client number.<br>
3. A 3 digit number - the "file number".<br>
<br>
The client number must increment by 1 for each new client last name i.e. <br>
<br>
Murphy --> Client ID --> MUR-01 (Only one Murphy)<br>
Lyons --> Client ID --> LYO-01 (Only one Lyons)<br>
Murphy --> Client ID --> MUR-02 (two different Murphys)<br>
Jack --> Client ID --> JAC-01 (Only one JAck)<br>
Murphy --> Client ID --> MUR-03 (three different Murphys)<br>
<br>
The third piece of the Client Ref - the filenumber which will increment by one for each new entry:<br>
<br>
E.g. <br>
Murphy --> MUR-01 --> 1st file --> Client Ref -->MUR-01-001<br>
Murphy --> MUR-01 --> 2nd file --> Client Ref -->MUR-01-002<br>
Murphy --> MUR-02 --> 1st file --> Client Ref -->MUR-02-001<br>
etc etc.<br>
<br>
As well as having the numbers increment automatically (and storing all the Client ID and Client Ref), I have to allow for users to enter previous clients so the starting point for Murphy could MUR-12 etc.<br>
<br>
I'd appreciate any help!<br>
<br>
Thanks,<br>
<br>
Kevin