Bhav
I read this as you're trying to go to the records before you've done the TableUpdate(), right. As you may know, newly created rec's are given negative rec nos until they're saved. But you can't GOTO them. I think you'd need to save each one independently, THEN store its rec no.
Alternatively, if you had opt. row buffering, then moving the file pointer on would auto save the last rec (thus giving it a rec no) but that wouldn't solve your problem. Perhaps you can insert a dummy field with some kind of counter, as you go, and save that instead of the recno, then you can do a "locate for dummyfield = "
HTH
Terry
>Hi
>
>My grid has a optimistic table buffered cursor to it. Now the new records I add are -1, -2 and so on. If I store the recno and the I try to goto it I get an error.
>
>How can I tackle this. I tried locate recno() = mysavedrecno but that did not position the pointer back to the newly added record.
>
>What am I doing wrong.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.