I use VB6 to manipulate my Informix databases on a RISC6000 server.
I've got a problem with numeric fields when i pass a value from informix
to a
VB recordset using ADO.
this is the open statement in my
VB project:
rs_inf.Open "SELECT clifor.rag_soc, clifor.cod_cat, movmag.cod_cli_for, anapro.cat_mer[1,1] ,_
Sum(movmag.val_unit_net) AS somma From .....
if i execute the SQL command directly in the DBaccess utility on RISC6000,
i obtain the right values.
These are the differences between SQL INFORMIX and
VB recordset
informix 95.15800000
VB 9
informix 314.2480000
VB 31
--------------------------------------------------------
if i change the SQL string :
rs_inf.Open "SELECT clifor.rag_soc, clifor.cod_cat, movmag.cod_cli_for, anapro.cat_mer[1,1] ,_
Sum(movmag.val_unit_net * movmag.qta_mov) AS somma From .....
i obtain these results :
informix 3515.24400000
VB empty
and if i try to manupulate the field in my recordset,
Vb show this error:
Run-time Error '-2147217887 (80040e21)'
Can anyone help me?
thanks