Please help me in figuring this one out. So I am trying to display the number of records with the same value into a label in my form.
SELECT Status_ , COUNT(Status_) FROM ISSUANCE WHERE Status_ = 'Draft' GROUP BY Status_
How can I display it? Thank you.
Dim disconn As New SqlConnection("Server = EURIZZE-PC;Database = INTERTRANS;Integrated Security = SSPI;")
Dim DataSet2 As New DataSet
Dim sqlcon As String = "SELECT ISSUANCE.Status_ , COUNT(Status_) FROM ISSUANCE WHERE Status_ = 'Draft' GROUP BY Status_"
Dim sqlda As New SqlDataAdapter(sql, thisConnection)
da.Fill(DataSet1, "ISSUANCE")
NameLabel1.DataBindings.Add("text", DataSet1, "") 'So I am having trouble on how to display it. Because the rowcount is not a permanent column.