D
Don
I have a relatively simple form which uses unbound text boxes to display and
edit information. When the form opens, an ADO Recordset is created. On the
form are record navigation buttons to move forward and backward by
performing MoveNext and MovePrevious respectively. The text boxes use
AfterUpdate to post the changes to the recordset by assigning the textbox
value to the recordset field (rstMyRecordset!Remarks = txtRemarks) followed
by a recordset update (rstMyRecordset.Update).
The problem I am having is if I edit the remarks of the first record, then
move to the next and try editing the remarks on the second record. As soon
as I enter a character, a pop-up appears saying:
The data has changed.
Another user editied this record and saved the changes before you attempted
to save your changes.
Re-edit the record.
I hit okay and everything works okay. Interestingly, this only seems to
happen when going from the first record to the second record and not others.
Also it does not happen when editing the second record and going back and
editing the first record.
Am I misguided in simply using AfterUpdate to post the changes to the
recordset? Should there be something in the form's record navigation
events?
Any advice will be greatly appreciated!
Thanks!
Don
"nvolved editing text in a "Remarks" text box (underlying field is a Memo
type).
edit information. When the form opens, an ADO Recordset is created. On the
form are record navigation buttons to move forward and backward by
performing MoveNext and MovePrevious respectively. The text boxes use
AfterUpdate to post the changes to the recordset by assigning the textbox
value to the recordset field (rstMyRecordset!Remarks = txtRemarks) followed
by a recordset update (rstMyRecordset.Update).
The problem I am having is if I edit the remarks of the first record, then
move to the next and try editing the remarks on the second record. As soon
as I enter a character, a pop-up appears saying:
The data has changed.
Another user editied this record and saved the changes before you attempted
to save your changes.
Re-edit the record.
I hit okay and everything works okay. Interestingly, this only seems to
happen when going from the first record to the second record and not others.
Also it does not happen when editing the second record and going back and
editing the first record.
Am I misguided in simply using AfterUpdate to post the changes to the
recordset? Should there be something in the form's record navigation
events?
Any advice will be greatly appreciated!
Thanks!
Don
"nvolved editing text in a "Remarks" text box (underlying field is a Memo
type).