Dim strConn As String = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Client.mdf;Integrated Security=True;User Instance=True" Dim MySQL9 As String = "Select SUM(Amount), SUM(AmountPaid) FROM Billing" Dim Conn9 As New SqlConnection(strConn9) Dim Cmd9 As New SqlCommand(MySQL9, Conn9) Conn9.Open() Dim Amounts As Integer = Convert.ToDecimal(Cmd9.ExecuteScalar) Amounts += "Amount" - "AmountPaid" Label8.Text = Amounts.ToString("C") Conn9.Close()
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.