新手代碼求指點一下
Dim connectionstring As String = ".........."
Dim querystring As String = "select * from 申請表"
Dim conn As New OleDb.OleDbConnection(connectionstring)
Try
conn.Open()
Dim cmd As New OleDb.OleDbCommand(querystring, conn)
Dim reader As OleDb.OleDbDataReader
Dim dt1 As OleDb.OleDbDataReader
reader = cmd.ExecuteReader()
dt1 = reader
下面我想再接著執行第二個查詢然後把二個結果集合並,再傳給DataGridView1,要如何寫下去
dt1.Merge(reader)'這句可以這樣寫嗎?
DataGridView1.DataSource = dt1
[解决办法]
dt1.Merge()方法需要什么参数,智能提示里有的。