T
Thomas Kroljic
All,
I have a form that contains a subform. The subform list all the client
records for the current user. If the user double-clicks on the record
indicator for a particular client record, the vba logic will 1) store the
bookmark value in a public variable, 2) open another form with the following
logic in the form's OPEN event: copy the record set from the subform to the
new form (this recordset usually contains more than one record), set the
bookmark = to the public variable holding the bookmark, and then final
display the selected (double-clicked record) full client record. (second
form allows the user to still scroll through all the clients records
displaying all the client data)
This works well, but I noticed a problem. If the selected record from the
subform happens to be the first record in the record set, when the user goes
to edit the record after double-clicking on it in the subform to get to the
form displaying all the data, it will not allow the user to edit the record.
They get the following message "Update or CancelUpdate without AddNew or
Edit". If they move to the next record using the navigation arrows on the
bottom of the open form, and then back, to the first record, they can edit
the record. If they select any other record but the first record in the
subform, all works well.
Any thoughts? I'm at a lost.
Thomas J. Kroljic
Thank you.
I have a form that contains a subform. The subform list all the client
records for the current user. If the user double-clicks on the record
indicator for a particular client record, the vba logic will 1) store the
bookmark value in a public variable, 2) open another form with the following
logic in the form's OPEN event: copy the record set from the subform to the
new form (this recordset usually contains more than one record), set the
bookmark = to the public variable holding the bookmark, and then final
display the selected (double-clicked record) full client record. (second
form allows the user to still scroll through all the clients records
displaying all the client data)
This works well, but I noticed a problem. If the selected record from the
subform happens to be the first record in the record set, when the user goes
to edit the record after double-clicking on it in the subform to get to the
form displaying all the data, it will not allow the user to edit the record.
They get the following message "Update or CancelUpdate without AddNew or
Edit". If they move to the next record using the navigation arrows on the
bottom of the open form, and then back, to the first record, they can edit
the record. If they select any other record but the first record in the
subform, all works well.
Any thoughts? I'm at a lost.
Thomas J. Kroljic
Thank you.