Hi,
First, apologies about the title. I had no idea how to describe my problem properly.
I'm currently at the beginning of creating a database. I think I have my tables, more or less, sorted and correct but I have a problem which I'm not sure how to get around. I'm pretty new at creating databases in access but have got a programming background which will hopefully help a little.
The database is for a small solicitors where there are several clients who may have many matters (cases) on going. Each new matter that is created has its own unique reference number which consists of:-
First 5 letters of the surname.
First letter of the first name
UFN in the middle.
The first date of contact
and at the end a unique number (which runs in order).
So for example if John Smith got arrested on the 28/07/09 and he was the first client we saw that day then his unique reference for this matter would be, SMITH/J/UFN/280709/001. If Peter Potter then got arrested on the same day his unique reference for this matter would be POTTE/P/UFN/280709/002. See how the last digit increases each time there is a new matter on this day?
So what I want to happen is this.
The user creates a client profile in the ClientProfile Table. This stores the usual information (names, numbers etc.). Then the user will press a button and will be asked for 'first date of contact'. They then enter the date of contact (without any '/') and then a new matter is opened for this client (in the Matters table) with a unique reference number for this matter that consists of the above (i.e. SMITH/J/UFN/280709/001).
Is this possible at all?
Thanks,
Andy.
First, apologies about the title. I had no idea how to describe my problem properly.
I'm currently at the beginning of creating a database. I think I have my tables, more or less, sorted and correct but I have a problem which I'm not sure how to get around. I'm pretty new at creating databases in access but have got a programming background which will hopefully help a little.
The database is for a small solicitors where there are several clients who may have many matters (cases) on going. Each new matter that is created has its own unique reference number which consists of:-
First 5 letters of the surname.
First letter of the first name
UFN in the middle.
The first date of contact
and at the end a unique number (which runs in order).
So for example if John Smith got arrested on the 28/07/09 and he was the first client we saw that day then his unique reference for this matter would be, SMITH/J/UFN/280709/001. If Peter Potter then got arrested on the same day his unique reference for this matter would be POTTE/P/UFN/280709/002. See how the last digit increases each time there is a new matter on this day?
So what I want to happen is this.
The user creates a client profile in the ClientProfile Table. This stores the usual information (names, numbers etc.). Then the user will press a button and will be asked for 'first date of contact'. They then enter the date of contact (without any '/') and then a new matter is opened for this client (in the Matters table) with a unique reference number for this matter that consists of the above (i.e. SMITH/J/UFN/280709/001).
Is this possible at all?
Thanks,
Andy.