I have textboxes on my form using for txtDueAmount, txtPaidamount, txtDiscount and txtNetBalance. Every time I want that as I press the save button so all the floating point values of textboxes turns into integer and if any value is like 30.5 so it also converters it into 31.
This is my insert query:
Insert("SaleMaster", "SaleID, SaleTotalAmount, SalePaidAmount, SaleDiscount,
SaleNetBalance, SaleDate", txtSaleID.Text & ", " & txtSaleDueAmount.Text &
", " & txtSalePaidAmount.Text & ", " & txtSaleDiscount.Text & ", " &
txtSaleNetBal.Text & ", '" & dtpSale.Value.Date & "'")
Please help me with this.