Subject datasource
From Mustansir Ghor <mustan31@hotmail.com>
Date Tue, 13 Aug 2019 07:50:34 -0400
Newsgroups dbase.getting-started

Dear All

I have an array datasource of COMBOBOX CBACC whose lostFocus is assign to following function. The form.cbcustomer funtions correctly based on valu of CBACC but when I close the form it hangs.


  function CBACC_onLostFocus()
     if this.value="EXPENSES"
        form.cbcustomer.datasource=form.qexpenses.rowset.fields["NAME"]
    endif
    if this.value="CUSTOMER"
     form.cbcustomer.datasource=form.qcustomer.rowset.fields["NAME"]
   endif
          
      return

Can anybody enlighten on the reason for the form to hang.

Best Regards
Mustansir