my code is working fine, but the output shows for example 12345.000
i would like to only show the data before the .000 is this posible?
Private Sub GetCurrentJanVOL()
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Try
con.ConnectionString = "Data Source=" & ServerV & ";Initial Catalog=" & databaseV & ";Persist Security Info=True;User ID=" & usernameV & ";Password=" & passwordV & ""
con.Open()
cmd.Connection = con
cmd.CommandText = "SELECT SUM(QtyInvoiced) AS JanVol FROM ArTrnDetail where (Customer = '" & Me.LBCustomer.Text & "') AND (TrnYear ='" & Me.LBcurrentyear.Text & "') AND (TrnMonth = 1)"
Dim lrd As SqlDataReader = cmd.ExecuteReader()
While lrd.Read()
Me.LBcurJanVol.Text = Convert.ToString(lrd("JanVol"))
End While
Catch ex As Exception
MessageBox.Show("Error while getting Current year volume for Jan")
Finally
con.Close()
End Try
End Sub