>>How about USE line? Are you sure, you not accidentally introduced a typo? Also where is LockRec? Is it function or separate prg? Could it be, that it's missing? Could you recompile the whole project and see, if problem persists?
>
>Ok, I might try that. Many methods to spoil the broth:-) As for the "USE &LD:JONTRANS" LD='L'. Sometime I refer to MD='M' drive. Thanks!
Good luck! I would change use line to
USE (m.LD+":\JOINTRANS") && LD is a single letter L drive
Also one line replace is faster than multiple replace lines, especially in a loop or if you have table level validations in the table, e.g.
replace field1 with value1, field2 with value2 is faster than
replace field1 with value1
replace field2 with value2
If it's not broken, fix it until it is.
My Blog