multiply two numeric fields of the same tab October 09, 2019, 08:19:54 AM hii have created one table with 3 field, import, qt, total.how i can do to multiply (import * qt) in total field when i add record ?thank you Quote Selected
Re: multiply two numeric fields of the same tab Reply #1 – October 09, 2019, 09:37:33 AM Hi @Domenicojust add this code onAdd Page properties->> action After Addchange >>TABLE_NAME<< for your table name.and this should work.// total = (import * qt) $db->rawQuery("update >>TABLE_NAME<< set total = import * qt WHERE >>TABLE_NAME<<.id='$rec_id'"); Quote Selected
Re: multiply two numeric fields of the same tab Reply #2 – October 09, 2019, 11:18:15 AM OK!! thanks. it work,i added this also edit page, but not work when i change value Quote Selected
Re: multiply two numeric fields of the same tab Reply #3 – October 09, 2019, 11:19:35 AM ok, now work.!!! Quote Selected