Ben Ball Posted August 31, 2007 Posted August 31, 2007 I have two different tables. T1 & T2. T1 has an indexing unique serial number (record Id). I have a field in T2 which i need to automatically index based on the T1 record ID so every record I create in T1 the records created in T2 will be sequential starting from 1 each time... not ussing the @@ command... I need it to be in a field... is this possible?
Ocean West Posted September 1, 2007 Posted September 1, 2007 How are you creating the children records via a portal or thru a script? if you are doing it though a portal set the field in T2 to auto enter Get (PortalRowNumber) if you are scripting it then set a variable to Count(T2::recordid) +1 go to other table create a record and set the field to the contents of the variable. however should you delete a child record it will not re-sequence the number and you could potentially have duplicates.
Recommended Posts
This topic is 6352 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