solarpunk Posted October 21, 2003 Posted October 21, 2003 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
andygaunt Posted October 21, 2003 Posted October 21, 2003 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
-Queue- Posted October 21, 2003 Posted October 21, 2003 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
solarpunk Posted October 21, 2003 Author Posted October 21, 2003 Thanks you all. I really appreciate your help. thanks, SolarPunk
Recommended Posts
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