Recordet Property and updatable forms

  • Thread starter Thread starter Jorge Viñuales
  • Start date Start date
J

Jorge Viñuales

Hello. I want to assign a Recordset variable to a form's Recordset Property.

When I make it, I can see the records in the underlying Recordset, but I
can't update the records, and I can't insert or delete Records.

¿Why?. With a mdb file there wasn´t any problem. With an ADP file, I
can´t...

Here is my code:

Dim cnn as new connection
dim rst as new ADODB.Recordset

cnn.open "......."
Set rst.ActiveConnection = cnn
rst.CursorLocation=adusecliente
rst.CursorType=adopendynamic
rst.LockType=adLockOptimistic
rst.Open "tb_customers"

set Forms!MyForm.Recordset=rst

Thank you for your help
 
Back
Top