Newbies spam Posted March 20, 2007 Newbies Posted March 20, 2007 Hi there, i'm fairly new at FileMaker. I would like to generate a custom serial number. Basically, I would like the text/number generated to have the first 4 character in the AdvertiserName field + a 6 digit number (automatically generated). I don't know how to calculate this. please help
John Mark Osborne Posted March 20, 2007 Posted March 20, 2007 The easiest approach might be to use a field with an auto-enter serial number. Start the serial number off with 100000 since it is the first 6 digit number. This will give you unique values of 6 digits till you reach 1 million. Then, you can use the serial number in a calculation: Left(AdvertiserNameField; 4) & SerialNumberField
Newbies spam Posted March 20, 2007 Author Newbies Posted March 20, 2007 thank you. that worked. now how do I get the records that have already been made to have that number. the serial won't generate unless it's a new record.
mr_vodka Posted March 20, 2007 Posted March 20, 2007 select the SerialNumberField and then Go to the 'Records' menu --> 'Replace field contents'. This can not be undone so make sure that you save a backup first.
Recommended Posts
This topic is 6519 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now