Private Sub Command1_Click() Dim total1 For i = 0 To DataGrid1.ApproxCount - 1 DataGrid1.Col = 0 total1 = Val(total1) + Val(DataGrid1.Text) Next txtTotal.Text = total1 End Sub
It only displays the "value of first row* the number of record"
the first row is 3 and number of record is 15 it will display "15".
I need you help please. Thanks!
correction number of record is 5. Sorry.