>I've snipped some code that doesn't quite seem right..........
>SELECT fac_mas
>SET ORDER TO operator
>GO TOP
> .
> .
> .
> *** We are at the top, remember GO TOP command :-)
>thisform.cmdback.enabled = .F.
>thisform.cmdbeg.enabled = .F.
>IF (RECNO() == RECCOUNT())
> *** That is just in case you have only one record in the table
>
>Wouldn't this also be true if the last physical record is the first indexed record? Better, I think, is something like
>SKIP
>IF EOF()
>etc.
>
Yep, it would :-)
both:
1. it would be true if the last record is the first
2. it would be better to use SKIP and IF EOF() :-)
As I said: I hate wizards, the add bunch of useless code and make it hard to maintain after that :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.