oParamObj = createobject('Empty') if type('thisform.osearchform.name') = 'C' && form is still active thisform.osearchform.Show() if pemstatus(oParamobj, 'SelectedCustomer',5) &&<= the pemstatus() return .f. Why? thisform.txtCusno.Value = oParamObj.SelectedCustomer endif ELSE DO FORM client_srh NAME thisform.osearchform WITH oParamObj, gUserno if pemstatus(oParamobj, 'SelectedCustomer',5) thisform.txtCusno.Value = oParamObj.SelectedCustomer endif ENDIFIn the Click event of the OK button in Search Form
thisform.oParam.SelectedCustomer = cusmas_srh->cusno thisform.hide()Please advise,