如何將VS2008與數(shù)據(jù)庫相結(jié)合實(shí)現(xiàn)簽到功能
Lycorisra
2016-09-29 08:04:11
TA貢獻(xiàn)1條經(jīng)驗(yàn) 獲得超0個(gè)贊
Dim sql As String = "select * from 表 where " & combobox1.text & "='"+textbox1.text & "'"
Using da As New SqlClient.SqlDataAdapter(Sql, cnn), tb As New DataTable, bs As New BindingSource
da.Fill(tb)
bs.DataSource = tb
Me.DataGridView1.DataSource = bs
End Using
舉報(bào)