Jump to content

This topic is 5503 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

hey I use FM9 but I can't calculate the number...

why always like 1,10,11,12,....100,101,.....1000,1001

why can't consecutive number like 1,2,3,4,5,6,........99999?....

Posted (edited)

I don't understand what you are attempting to calculate. If you are trying to get an incrementing serial number, set the field to type number and, under auto-enter in your field definitions (File > Manage > Database > Fields), select Serial and Next Value 1, increment by 1. If this isn't what you need then please explain a bit more. :wink2:

Edited by Guest
Added sentence
Posted

how to make the number consecutively .

this my example why the number not consecutively?...

i want the number consecutively.

yes I done with the auto number but it's not consecutively

4313197750_c27949cc08_m.jpg

4313116318_79a4cbd9dd_m.jpg

Posted

It looks like two things have happened: 1) a lot of time has passed and records have been deleted in between and/or 2) an import took place, importing the serials as well (without specifying 'Perform auto-enter'.

I would only caution ... are there any related records which are related using these serial numbers? If not, then you can re-serialize by (and BACK UP FIRST):

Show All Records

Place cursor in that ID field

Run Records > Replace Field Contents

Select 'Replace with serial numbers'

Initial value 1

Increment by 1

... and then check that checkbox which says 'Update serial number in entry options.'

Then click REPLACE

This should be done when others aren't in the system so you won't hit record locking issues.

Posted

how to make the number consecutively

This is scaresly descriped, what purpose would you need the relative position in the file for? Would you need in case of gaps/deletion of records, that the numbers adjusts themselves?

Even better what would need such thing? Scripted replaces as LaRetta suggests would do something in the vicinity of that, but then would you need to get the autoentering adjusted as well, which rules out scripting of the matter ... could it be that you somehow have caught a cul de sac, on assumptions of being a proper requirement - which instead actually is structural issue?

Perhaps even a layout matter only read up upon the use of @@...

--sd

Posted

This situation happened to me once. I had to add id # for each record. Simply start with 00001, 00002, etc... The problem occurs when you sort number. Computers think differently!!

This topic is 5503 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.