JamesTrory
7 years agoQrew Assistant Captain
Key field question
For each record in one of my tables I want to generate a "Job #", a unique 4-digit number starting from 1000. I want this to be the key field.
I have a formula field called [Job #] with this formula:
[Record ID#]+1000
This works fine. It's the key field part that I'm stuck on.
A key field also by default has to be a required field. The Record ID is not created until after a form is saved. So the problem is that I can't save a new record because [Job #] is required as the key field, but can't be created until after the Record ID is also created, which means saving the form first.
I hope that makes sense. Basically I'm prevented from being able to create new records. I can't figure out a way to have [Job #] to be the key field AND be a unique number for every record without using [Record ID#].
I have a formula field called [Job #] with this formula:
[Record ID#]+1000
This works fine. It's the key field part that I'm stuck on.
A key field also by default has to be a required field. The Record ID is not created until after a form is saved. So the problem is that I can't save a new record because [Job #] is required as the key field, but can't be created until after the Record ID is also created, which means saving the form first.
I hope that makes sense. Basically I'm prevented from being able to create new records. I can't figure out a way to have [Job #] to be the key field AND be a unique number for every record without using [Record ID#].