thisform.refresh do case case .not. isblank(mpatlastname) seek alltrim(mpatlastname) order tag last_name of patient.cdx if not found() and eof() do form pat_add &&do form notfindapppatient thisform.release() endif case mservpatphone <> 0 seek (mservpatphone) order tag phone of patient.cdx if not found() and eof() do form pat_add &&do form notfindapppatient thisform.release() endif case mhlth_card <> 0 seek (mhlth_card) order tag health_num of patient.cdx if not found() and eof() do form pat_add &&do form notfindapppatient thisform.release() endif ENDCASEOnce found the user, clicks on the name and clicks Return on the Find form which then goes back to the calling form and populates the fields in the original form with data from the name searched for.