Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27329

VS 2005 FormatNumber Problem

$
0
0
Hello guys! I got a problem with formatnumber.

Here is my code:
com = "INSERT INTO ProductTable VALUES(" & productid & ",'" & tbinvoicenumber.Text & "','" & tbcompany.Text & "','" & tbtype.Text & "','" & tbmodel.Text & "'," & tbqty.Text & ",'" & FormatNumber(tbamt.Text, 2) & "')"
MsgBox(FormatNumber(tbamt.Text, 2))
connectToProduct()


Here are the images of my problem:

I added a decimal value

Attachment 96151

The decimal value became whole number

Attachment 96153
Attached Images
   

Viewing all articles
Browse latest Browse all 27329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>