advancesystems
New member
- Local time
- Today, 00:41
- Joined
- Jan 22, 2003
- Messages
- 8
I have a field that needs to be autoentered(defaultvalue) when a new record is added. This default value is quiote awkward and I simply can't get it to work. The field is "Ref_No" in a table called "Registrations". To simpliy this example I will use one other field only.
"Department"
In the registrations table a refno is assigned to each record, however this reference number is not unique but the same reference no cannot exist in 2 registrations where the department is the same. Therefore I cant use an autonumber field.
I was trying to make the default value lookup the highest used ref no for all registrations where the department number is the same as the one just entered for this record.
Any help would be warmly welcomed.
"Department"
In the registrations table a refno is assigned to each record, however this reference number is not unique but the same reference no cannot exist in 2 registrations where the department is the same. Therefore I cant use an autonumber field.
I was trying to make the default value lookup the highest used ref no for all registrations where the department number is the same as the one just entered for this record.
Any help would be warmly welcomed.