Hi
I have a key field in a dat entry form that is currently entered manually by the user. The key has the format XXXXXX-000 that is the first 6 characters are letters and the last 3 characters are a number eg 001, 002, etc.
The first part of the key value is made up of the first 6 letters (ignoring spaces) of the value in another field. For example, values in this field could be: "University of New South Wales", "University of WA", Tap Oil, etc. As you can see taking the first 6 characters of these values can result in duplication eg UNIVER. So inorder to make the value unique I thought that each like value should be sequentially number. In other words the three companies above would end up with key values as:
UNIVER-001 - University of New South Wales
UNIVER-002 - University of WA
TAPOIL-001 - Tap Oil
I suspect that the first part will involve a sting function to pick up the characters and get rid of the spaces. If any one can help it would be greatly appreciated.
Russell
I have a key field in a dat entry form that is currently entered manually by the user. The key has the format XXXXXX-000 that is the first 6 characters are letters and the last 3 characters are a number eg 001, 002, etc.
The first part of the key value is made up of the first 6 letters (ignoring spaces) of the value in another field. For example, values in this field could be: "University of New South Wales", "University of WA", Tap Oil, etc. As you can see taking the first 6 characters of these values can result in duplication eg UNIVER. So inorder to make the value unique I thought that each like value should be sequentially number. In other words the three companies above would end up with key values as:
UNIVER-001 - University of New South Wales
UNIVER-002 - University of WA
TAPOIL-001 - Tap Oil
I suspect that the first part will involve a sting function to pick up the characters and get rid of the spaces. If any one can help it would be greatly appreciated.
Russell