P
prototype
I am trying to bind a form to a record set using access 2003. However, I can
not edit the data in the form. I made sure that the record locks are set
correctly. Does anyone know how to bind a recordset to a form and allow the
records to be edited (i.e. not read only)? I used the following code:
Note: the "frm" and "rst" ojects are defined as public variables in a module.
Private Sub btn_Click()
Set frm = New Form_TestForm
Set rst = New ADODB.Recordset
rst.Open "testTable", CurrentProject.Connection, adOpenKeyset,
adLockOptimistic
Set frm.Recordset = rst
frm.Visible = True
End Sub
not edit the data in the form. I made sure that the record locks are set
correctly. Does anyone know how to bind a recordset to a form and allow the
records to be edited (i.e. not read only)? I used the following code:
Note: the "frm" and "rst" ojects are defined as public variables in a module.
Private Sub btn_Click()
Set frm = New Form_TestForm
Set rst = New ADODB.Recordset
rst.Open "testTable", CurrentProject.Connection, adOpenKeyset,
adLockOptimistic
Set frm.Recordset = rst
frm.Visible = True
End Sub