Dear Farid anywhere, Salah satu penyebab error "Insufficient key column information for updating or refreshing" adalah proses UPDATE, DELETE terhadap suatu TABLE yang tidak mempunyai Primary Key. Jika benar begitu adanya, bapak Farid anywhere bisa menambahkan Primary Key pada table Login tersebut.
Dan satu lagi, query sebelum proses update lebih baik hanya menunjuk pada satu record, jadi query yang lebih baik adalah "SELECT * FROM Login Where LoginId = 12345". Hal tersebut untuk menghindari error "Multiple Step OLEDB ...." Regards, Harisiswoyo --- In [email protected], farid anywhere <[EMAIL PROTECTED]> wrote: > > Dear all VB master, > > saya mau nanya masalah proses edit yang bingung, di form yang lain jalan tapi disini koq error, kira-kira apa ya...? > > If conn.State = adStateOpen Then conn.Close > cls_pub.connect_db > > If rsuplog.State = adStateOpen Then rsuplog.Close > rsuplog.CursorLocation = adUseClient > > sql = "select * from login and userid like ' " & txt_NIP.Text & " ' " > rsuplog.Open sql, conn, adOpenKeyset, adLockOptimistic > > If rsuplog.RecordCount <> 0 Then > With rsuplog > .Fields(0) = txt_NIP.Text > .Fields(1) = txt_pwd.Text > .Fields(3) = cmb_Hak.Text > .Fields(2) = txt_nama.Text > .Update > > End With > End If > > > Pesan errornya seperti ini "Insufficient key column information for updating or refreshing". > Atas jawaban rekan-rekan sekalian , makasih banyak ya.... > > > > > > ____________________________________________________________________________________ > Be a better pen pal. > Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/ >
