Im using VB.NET 2005
i want to sum two records in database. So when i retreive them
to display in my textbox they already sum.
the numbers are in text.
please help me ... im a newbie..
this is my code.
con.Open()
cmd = New OleDbCommand("select * from ChargedItems where name ='" & Me.cmbfnameEarnings.Text & "'", con)
conreader = cmd.ExecuteReader
Me.txtcharg.Clear()
Do While conreader.Read
Me.txtcharg.Text = conreader.Item("amount")
Me.Refresh()
Loop
cmd.Dispose()
con.Close()
conreader.Close()