When switching between main form and subform get a 'the data has been changed ... another user edited this record ... re-edit'
Hi Folks,
I have an elusive issue with a set of forms I am trying to figure out. A main for with a tab control and a few tabs is opened and maximized via a command button. A user can successfully enter data into this form no problem; however, if a user clicks on a command button within that main form to open and maximize a subform, if the user then goes back to the main form, again via a command button, and changes something on the main form this is the error message they receive:
"Microsoft Access: The data has been changed. Another user edited this record and saved the changes before you attempted to save your changes. Re-edit the record." OK
Interestingly enough, no other user is editing the record and this happens each and every time someone goes from the main form to a subform via a command button on the main form, then back to the main form from the subform with a command button and changes an item on the main form.
After the user selects OK from the error/warning prompt it allows them to change the values and save those values without any problem.
Is there a way I can fix this and if not can I cirvumvent the error message somehow ... this is a description of the design I am using:
Command button is clicked from navigation menu = main form is opened and maximized in normal mode.
Command button is clicked from main form = saves main form data (but does not close the main form), opens and maximized subform in normal mode based on where [ID]=[Forms1].[Main Form].[ID], maximizes sub form
Command button is clicked from subform to go back to main form = embedded macro close sub form save without prompt opens main form back up in normal mode (this form never really closes per se, it just re-opens to the same record where it left off which is what I want).
Any help would be greatly appreciated. I am testing this database app and the only thing I can find is this issue, so if I can fix it somehow or at least turn perhaps this error message off, I am set to go.
I appreciate any help,
Thank you very much,
Joe
Hi Folks,
I have an elusive issue with a set of forms I am trying to figure out. A main for with a tab control and a few tabs is opened and maximized via a command button. A user can successfully enter data into this form no problem; however, if a user clicks on a command button within that main form to open and maximize a subform, if the user then goes back to the main form, again via a command button, and changes something on the main form this is the error message they receive:
"Microsoft Access: The data has been changed. Another user edited this record and saved the changes before you attempted to save your changes. Re-edit the record." OK
Interestingly enough, no other user is editing the record and this happens each and every time someone goes from the main form to a subform via a command button on the main form, then back to the main form from the subform with a command button and changes an item on the main form.
After the user selects OK from the error/warning prompt it allows them to change the values and save those values without any problem.
Is there a way I can fix this and if not can I cirvumvent the error message somehow ... this is a description of the design I am using:
Command button is clicked from navigation menu = main form is opened and maximized in normal mode.
Command button is clicked from main form = saves main form data (but does not close the main form), opens and maximized subform in normal mode based on where [ID]=[Forms1].[Main Form].[ID], maximizes sub form
Command button is clicked from subform to go back to main form = embedded macro close sub form save without prompt opens main form back up in normal mode (this form never really closes per se, it just re-opens to the same record where it left off which is what I want).
Any help would be greatly appreciated. I am testing this database app and the only thing I can find is this issue, so if I can fix it somehow or at least turn perhaps this error message off, I am set to go.
I appreciate any help,
Thank you very much,
Joe