[VB6 ] 請教一個資料庫的問題

看板Visual_Basic作者 (steven)時間18年前 (2007/02/02 22:57), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
各位好 小弟在寫一個資料庫的程式, 這一個命令紐是要將ACCESS裡面的資料, 還有VB表單的Text輸入的資料,全部刪除 可是執行後卻出現424錯誤的訊息 程式碼如下,希望知道的大大告知一下 謝謝 While Adodc1.Recordset.EOF = False DataGrid.Row = 1 Adodc1.Recordset.Delete Adodc1.Recordset.MoveNext Wend If Adodc1.Recordset.EOF = True Then Adodc1.Recordset.MoveLast End If Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Text7.Text = "" Text8.Text = "" Text9.Text = "" Text10.Text = "" -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.117.115.4

02/02 22:59, , 1F
你都 Eof 了為何還 MoveLast @@
02/02 22:59, 1F

02/03 08:44, , 2F
If Adodc1.Record 這一段似乎不用
02/03 08:44, 2F
文章代碼(AID): #15mr57Gs (Visual_Basic)
文章代碼(AID): #15mr57Gs (Visual_Basic)