Jump to content

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

Recommended Posts

Posted

Hello,

i was wondering if this is possible. basically, i have around 17,000 records and i want to add auto-enter serial or id to those records already create it. is there a way to do it so that it will be cs-1 to cs-17000.

thanks,

victor

Posted

Hi -

Create your text field for your serial number.

Now, in browse mode click into that field and choose Replace from the Records menu. Choose the replace with serial number. Set the initial value to cs-1 and increment by one. Leave the check for update serial number in entry options.

HTH

Posted

Easiest way: move to a layout with the serial field on it, click into it and select the Records->Replace menu. Select 'Replace with serial numbers' and enter cs-1.

Safest way: create a script

Go to Record/Request/Page [First]

Set Field ["gID", "cs-1"]

Loop

Go to Next Field

If [ Status(CurrentError) = 301 ]

whatever you want to do if the record is in use...

Else

Set Field ["serial", "gID"]

Set Field ["gID", ""cs" & NumToText( TextToNum( gID ) - 1 )"]

End If

Go to Record/Request/Page [Exit after last, Next]

End Loop

This topic is 7774 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.