That is the point, I don't know the eventual amount of records, there for I cannot dimension an array.

I am looking for another solution.