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
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