Private Sub Command2_Click()
Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset
rst.Open "Table1", CurrentProject.Connection, adOpenStatic, adLockOptimistic
rst.Supports (adUpdate)
rst.field(0) = txt1.value
rst.field(1) = txt2.value
rst.Update
rst.close
rst = nothing
End Sub
ลองดูครับ ว่าได้ไหม