Please help "operation was canceled"



Hi, i have this problem. I use a bindingcollection object to bound a class
(wich is a datasource) to bound a recordset with some controls (textbox,
optionbuttons, combobox...)

It all works find, except one line, here's the code:

With objBindP
Set .DataSource = Productos
.Add cmbProductos, "tag", "ID"
.Add txtPrev(1), "tag", "IDAREA"
'.Add txtPrev(0), "text", "CANTIDAD"
.Add txtPrev(2), "text", "ENTREGA"
.Add optDolar(0), "value", "DOLAR_FLAG"
.Add txtProd(0), "tag", "IMP_VENTA"
.Add txtProd(0), "text", "IMP_VENTA"
.Add txtProd(2), "tag", "IVA_100"
.Add txtProd(2), "text", "IVA_100", txtProd(2).DataFormat
End With

If u take a look, there's one line commented. If i uncomment that line the
following error rise when i execute something that moves through the
datasource (in this case a class, wich opens a recordset) :

"Error '-2147217842 (80040e4e)' at runtime: Operation was canceled."

It's works beautifuly, but that line. I can't find anything wrong or wierd
about that. That line should bind the property "text" from a textbox to a
recordset field called "CANTIDAD". This field has the same attributes than
the field "IVA_100", but this one works, and the other not. The only
difference between this two fields, is that "IVA_100" has a format attribute
(at database level) of "percentage" while "CANTIDAD" has no format.
Besides that, i don't see why it wont work.

Thank u so much for the help. Matias.

PD: Sorry if my english isn't so good. I Hope u understand.

--
Programming is an art form, no matter what the say...
.


Loading