0

我尝试使用排序功能,但它不会让我因为我连接到数据源。

这是我该部分的代码:

Private Sub ClientIDComboBox_SelectedIndexChanged(sender As Object, e As EventArgs)
    Dim con As New SqlConnection
    Dim sqlCmd As New SqlCommand
    sqlCmd.CommandText = "SELECT * FROM dbo.SA_CLient order by CLientname"
    Try
        con.Open()
    Catch ex As Exception

    End Try

    con.Close()



End Sub
4

0 回答 0