SELECT curOrderParts SET ORDER TO PriDetID IF INDEXSEEK(curGridItems.PriDetID,.T.,'curOrderParts') DO FORM frmOrderParts WITH RECNO("curOrderParts") TO locSaved && <== Error ELSE MESSAGEBOX("Please select a part before proceeding.",0+48) RETURN .f. ENDIFdo? Does the form frmOrderParts use the default data session? What code do you have in the load or init of the form to handle the table and record position?
>SELECT curOrderParts >SET ORDER TO PriDetID >SEEK curGridItems.PriDetID > >IF FOUND("curOrderParts") > DO FORM frmOrderParts WITH RECNO("curOrderParts") TO locSaved && <== Error >ELSE > MESSAGEBOX("Please select a part before proceeding.",0+48) > RETURN .f. >ENDIF >