M
Michael Kellogg
I made some changes to my A2000 app that included changing the underlying
recordset to explicitly be an ADO recordset object. I'm still confused
as to whether this was the case by default already, before, or not.
Now, all of a sudden my form won't allow me to edit the data. The
recordset itself is updatable, as I can make changes to it in the
Immediate window, directly, and those changes take in the database and
get updated in the form no problem. However, if I try to change any text
box values (text boxes that are connected to the recordset), the status
bar says the form is read-only and I get a 2448 error, "You can't assign
a value to this object."
Here is my setup code:
Set mAdoRst = New ADODB.Recordset
With mAdoRst
Set .ActiveConnection = mAdoCn
.CursorType = adOpenKeyset
.LockType = adLockOptimistic
.CursorLocation = adUseServer
.Open "Clocks"
.Filter = "empID = 1"
End With
Set Me.Recordset = mAdoRst
I had tried, originally, a long SELECT statement with a join and a WHERE,
but when I couldn't edit I thought that might be the problem. I still
can't get it to take. Any thoughts?
recordset to explicitly be an ADO recordset object. I'm still confused
as to whether this was the case by default already, before, or not.
Now, all of a sudden my form won't allow me to edit the data. The
recordset itself is updatable, as I can make changes to it in the
Immediate window, directly, and those changes take in the database and
get updated in the form no problem. However, if I try to change any text
box values (text boxes that are connected to the recordset), the status
bar says the form is read-only and I get a 2448 error, "You can't assign
a value to this object."
Here is my setup code:
Set mAdoRst = New ADODB.Recordset
With mAdoRst
Set .ActiveConnection = mAdoCn
.CursorType = adOpenKeyset
.LockType = adLockOptimistic
.CursorLocation = adUseServer
.Open "Clocks"
.Filter = "empID = 1"
End With
Set Me.Recordset = mAdoRst
I had tried, originally, a long SELECT statement with a join and a WHERE,
but when I couldn't edit I thought that might be the problem. I still
can't get it to take. Any thoughts?