Forum Discussion
MarkShnier
12 years agoQrew Cadet
Have a look at this app.
https://yqc.quickbase.com/db/bigy8ejyu
I gave you Admin access. If you like you can contact me via my profile and I will transfer a copy to you.
Basically the idea is to create a [Sequence #] field which is based on a formula which will start off the numbering by Department at whatever number you want to start at.
var number StartNumber = Case([Department Number],"10",1234,"20",2000);
Max($StartNumber,[Sequence # snapshot])
Then we make a field called [Sequence # plus 1] which is the formula of [Sequence #] +1, and make a summary of the Maximum that field.
and then do a lookup back down to the Antiques Table and then take a snapshot of that field called [Sequence # snapshot]
By doing a snapshot we ensure that the numbers don't all get jiggled down when a record is deleted.
The actual Serial # we display is this formula.
[Department Number] & "-" & Right("00000" & ToText([Sequence #]),6)
https://yqc.quickbase.com/db/bigy8ejyu
I gave you Admin access. If you like you can contact me via my profile and I will transfer a copy to you.
Basically the idea is to create a [Sequence #] field which is based on a formula which will start off the numbering by Department at whatever number you want to start at.
var number StartNumber = Case([Department Number],"10",1234,"20",2000);
Max($StartNumber,[Sequence # snapshot])
Then we make a field called [Sequence # plus 1] which is the formula of [Sequence #] +1, and make a summary of the Maximum that field.
and then do a lookup back down to the Antiques Table and then take a snapshot of that field called [Sequence # snapshot]
By doing a snapshot we ensure that the numbers don't all get jiggled down when a record is deleted.
The actual Serial # we display is this formula.
[Department Number] & "-" & Right("00000" & ToText([Sequence #]),6)
DavidKnight
8 years agoQrew Trainee
Hello, I am trying to do this exact same thing, but the link doesn't work (https://yqc.quickbase.com/db/bigy8ejyu). Would it be possible to see this solution?