Subject Re: datasource
From Mervyn Bick <invalid@invalid.invald>
Date Tue, 13 Aug 2019 15:27:00 +0200
Newsgroups dbase.getting-started

On 2019-08-13 3:25 PM, Mervyn Bick wrote:

> I don't know why it happens but the work-around is to null the
> form.cbcustomer.datasource property before assigning a new value to the
> datasource.
>
>    function CBACC_onLostFocus()
>       if this.value="EXPENSES"
>          form.cbcustomer.datasource=""
>          form.cbcustomer.datasource=form.qexpenses.rowset.fields["NAME"]
>       endif
>       if this.value="CUSTOMER"
>          form.cbcustomer.datasource=

Oops.
             form.cbcustomer.datasource=""

>          form.cbcustomer.datasource=form.qcustomer.rowset.fields["NAME"]
>       endif
>       return
>
> Mervyn.