>>Yes, this is what I am doing now. Using the PK field value as the seed.
>>Thank you for translating it to VFP.
>>Interesting that Viv (I forgot how to spell his last name; I have not seen him here in a while) translated your VFP version into C# (which I use in my ASP.NET app)
>>
>
>Original code was in C. Most likely that what he used
It could be but he was not familiar with it when I showed him your code. But he may have searched and found the C code.
In the end both your VFP version and his C# version work very well.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham