i added a currency sign to my number field which is a "double" field on my
database. this is the code:
Private Sub TextBox11_Leave (ByVal sender As Object, ByVal e As System.
EventArgs) Handles TextBox11.Leave
Dim dblValue As String
If TextBox11.Text. Contains(".") = True Then
dblValue = Format(Val(Text Box11.Text), "P #,###.##")
TextBox11.Text = dblValue
Else
dblValue = Format(Val(Text Box11.Text), "P #,###.00")
TextBox11.Text = dblValue
End If
End Sub
it does work but every time that i save it the value that is returned in my
database is 0. my add code is something like this(only a part of the whole
code):
..addValue(Val( TextBox11.Text) , "TotalAmoun t")
--
Message posted via http://www.dotnetmonster.com
database. this is the code:
Private Sub TextBox11_Leave (ByVal sender As Object, ByVal e As System.
EventArgs) Handles TextBox11.Leave
Dim dblValue As String
If TextBox11.Text. Contains(".") = True Then
dblValue = Format(Val(Text Box11.Text), "P #,###.##")
TextBox11.Text = dblValue
Else
dblValue = Format(Val(Text Box11.Text), "P #,###.00")
TextBox11.Text = dblValue
End If
End Sub
it does work but every time that i save it the value that is returned in my
database is 0. my add code is something like this(only a part of the whole
code):
..addValue(Val( TextBox11.Text) , "TotalAmoun t")
--
Message posted via http://www.dotnetmonster.com
Comment