![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have a simple table that displays an Item Number (one item per record) I also have a Date and a Time field. I want to create a script that sorts the table by Date and Time, and then to automatically renumber the Item Numbers based on this chronological sort. I may also want to add (+) a value stored on a separate table to this series. For example, on a separate table I have "Previous Number of Items" amount ( a single number). Lets say the number is 120. After the sort, I want the first record to be 121, then 122 and so on. Also, I want to store on the separate table, the total number of records in the Item table + the "Previous No. of Items". So basically, what script do I use to count the total number of records in a given table. Many thanks for all the help!! |
#3
| |||
| |||
|
|
Hello, I have a simple table that displays an Item Number (one item per record) I also have a Date and a Time field. I want to create a script that sorts the table by Date and Time, and then to automatically renumber the Item Numbers based on this chronological sort. I may also want to add (+) a value stored on a separate table to this series. For example, on a separate table I have "Previous Number of Items" amount ( a single number). Lets say the number is 120. After the sort, I want the first record to be 121, then 122 and so on. Also, I want to store on the separate table, the total number of records in the Item table + the "Previous No. of Items". So basically, what script do I use to count the total number of records in a given table. Many thanks for all the help!! |
#4
| |||
| |||
|
|
Nando wrote: Hello, I have a simple table that displays an Item Number (one item per record) I also have a Date and a Time field. I want to create a script that sorts the table by Date and Time, and then to automatically renumber the Item Numbers based on this chronological sort. I may also want to add (+) a value stored on a separate table to this series. For example, on a separate table I have "Previous Number of Items" amount ( a single number). Lets say the number is 120. After the sort, I want the first record to be 121, then 122 and so on. Also, I want to store on the separate table, the total number of records in the Item table + the "Previous No. of Items". So basically, what script do I use to count the total number of records in a given table. Many thanks for all the help!! Look at the Replace Field Contents script step. Matt |
#5
| |||
| |||
|
|
Thank you Matt, but I think this will only replace the field only in the current record. I need the script to cycle thru all the records after the chronological sort. Thanks again, Nando On Mon, 15 Aug 2005 09:17:31 GMT, "Matt Wills" <I'm (AT) Witz (DOT) end> wrote: Nando wrote: Hello, I have a simple table that displays an Item Number (one item per record) I also have a Date and a Time field. I want to create a script that sorts the table by Date and Time, and then to automatically renumber the Item Numbers based on this chronological sort. I may also want to add (+) a value stored on a separate table to this series. For example, on a separate table I have "Previous Number of Items" amount ( a single number). Lets say the number is 120. After the sort, I want the first record to be 121, then 122 and so on. Also, I want to store on the separate table, the total number of records in the Item table + the "Previous No. of Items". So basically, what script do I use to count the total number of records in a given table. Many thanks for all the help!! Look at the Replace Field Contents script step. Matt |
#6
| |||
| |||
|
|
Thank you Matt, but I think this will only replace the field only in the current record. I need the script to cycle thru all the records after the chronological sort. Thanks again, Nando On Mon, 15 Aug 2005 09:17:31 GMT, "Matt Wills" <I'm (AT) Witz (DOT) end> wrote: Nando wrote: Hello, I have a simple table that displays an Item Number (one item per record) I also have a Date and a Time field. I want to create a script that sorts the table by Date and Time, and then to automatically renumber the Item Numbers based on this chronological sort. I may also want to add (+) a value stored on a separate table to this series. For example, on a separate table I have "Previous Number of Items" amount ( a single number). Lets say the number is 120. After the sort, I want the first record to be 121, then 122 and so on. Also, I want to store on the separate table, the total number of records in the Item table + the "Previous No. of Items". So basically, what script do I use to count the total number of records in a given table. Many thanks for all the help!! Look at the Replace Field Contents script step. Matt |
![]() |
| Thread Tools | |
| Display Modes | |
| |