Recordet Property and updatable forms

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top