Change Record Number
Forums
Hello,
I have a set of data that has an assigned account number. I would like to select from this data a sample, but I wish to not select more than 5 items with the same account number.
I've indexed the data by account number and wrote my code to add the account number to an array but then checking if the previous object in the array is the same account number if so then allowing it to select that item up to 5 times. The problem I have is that ever after indexing the record set it still cycles through the data by the record number which does not change with indexing.
Is there a function to check if a string is contained within an array and if so how many times?
Hi Chris,
Hi Chris,
Here is an examle function that will take an array and a string value and return the number of times that string value shows in the array. Hope this helps out a bit.
Brian