saya punya tabel biaya yg isinya (Tanggal, Aktivitas, Jumlah) dgn dbase access, 
kemudian saya ingin hapus record yang tanggalnya berada di luar rentang tahun 
2009.
berikut code-nya:

ado1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=SMM_2008.mdb; " & _
"Persist Security Info=False"
ado1.RecordSource = "select * from biaya where year(tanggal) <> 2009"
ado1.Refresh
Do While Not ado1.Recordset.EOF
ado1.Recordset.Delete
ado1.Recordset.MoveNext
Loop

dalam hal ini, saya masih menggunakan komponen adodc.

nah, pertanyaannya :
mengapa setiap proses ini dijalankan hasilnya selalu muncul error : run-time 
error '-2147467259 (80004005)':
Key column information is insufficient or incorrect.Too many rows were affected 
by update.

thanks before!


Kirim email ke