>I have code to capture the record number in the BeforeRowColChange to a form property. In 9 of 12 column headers have code to set the order of the data to that field. At the end of the header code it goes to the record variable if it is not equal to the recno. Can anyone tell me why the record pointer jumps around?
>
>* BeforeRowColChange code
>ThisForm.pnRecord = RECNO()
>
>*End of header code
>WITH ThisForm
> IF RECNO() != .pnRecord
> GOTO .pnRecord
> ENDIF
>ENDWITH
>
>Thanks in advance, Chuck
May be you can save the current record at the beginning of the Header code and then restore it back afterwords?
Also, are you sure you're on the right alias ?
Also, put header's code into thisform.LockScreen = .t. and thisform.LockScreen = .f. to prevent visual jumping.
If it's not broken, fix it until it is.
My Blog