Hello,
I've a recordset displayed on a Data grid. I'm trying to sum the values of a field so that I can have the total sum of the entire recordset displayed on a field. I've tryed the follow:
VendaTable.Recordset.MoveFirst
Do Until VendaTable.Recordset.EOF
QtdTotal = QtdTotal + VendaTable.Recordset.qtd
VendaTable.Recordset.MoveNext
Loop
I'm receiving the error:
Run-time error "13": type mismatch
Can annyone help me please.
Thanks,
João
I've a recordset displayed on a Data grid. I'm trying to sum the values of a field so that I can have the total sum of the entire recordset displayed on a field. I've tryed the follow:
VendaTable.Recordset.MoveFirst
Do Until VendaTable.Recordset.EOF
QtdTotal = QtdTotal + VendaTable.Recordset.qtd
VendaTable.Recordset.MoveNext
Loop
I'm receiving the error:
Run-time error "13": type mismatch
Can annyone help me please.
Thanks,
João