Code: Select all
If .NOT. IsEmpty(ReadTranValue("Salesperson"))
OpenTable("COMRATE")
If .NOT. COMRATE->(Find(ReadTranValue("Salesperson")))
Echo("Sorry, the sales rep code '" + ALLTRIM(ReadTranValue("Salesperson")) + "' does not exist. Please correct this before proceeding.")
Return FALSE
Endif
Endif