trimakassi
Programmer
i am trying to store a numeric value in a textbox in a msaccess field.
the field is numeric simple real type
code:
Dim dr As System.Data.DataRow = Ds1.Table(0).NewRow
dr("number") = cdbl(txtnum.text)
Ds1.Tables(0).Rows.Add(dr)
OleDbDataAdapter1.Update(Ds1)
OleDbDataAdapter1.Fill(Ds1)
Me.Refresh()
my problem is that 12.43 gets stored as 12. 12.50 gets stored as 13. I want 12.5 to be stored as 12.5
thanks
trimakassi
the field is numeric simple real type
code:
Dim dr As System.Data.DataRow = Ds1.Table(0).NewRow
dr("number") = cdbl(txtnum.text)
Ds1.Tables(0).Rows.Add(dr)
OleDbDataAdapter1.Update(Ds1)
OleDbDataAdapter1.Fill(Ds1)
Me.Refresh()
my problem is that 12.43 gets stored as 12. 12.50 gets stored as 13. I want 12.5 to be stored as 12.5
thanks
trimakassi