Hi All,
Anyone got any ideas about this?
Access 2010.
I have a form with a duplicate record button.
Sometimes when duplicating a record the duplicate is created but the form remains in edit mode (small pencil in the form margin).
I also have a manual record counter on the form which does not refresh to the newest record number following the duplication? Both issues happen together and not independently.
I now have the standard MS Access record counter visible on the form to see what’s happening and this always jumps correctly to a new record number when duplication is triggered, so when the problem happens the MS Access counter is showing one more than my own record counter.
If I use the standard MS Access record navigation buttons and go back and then forward by one record, the duplicated record is then corrected. The edit mode pencil is gone and both record counters read the same, which I assume has happened this has forced a save to happen
So, I thought by using –
If Me.Dirty
Then Me.Dirty = False
End If
- in the current event of the form, would solve the problem, but it doesn’t make any difference at all, it’s still no better, or no worse than before?
Using CTRL + S removes the pencil, but doesn't correct my bespoke record counter?
Thanks in advance?
Regards
Mark
Anyone got any ideas about this?
Access 2010.
I have a form with a duplicate record button.
Sometimes when duplicating a record the duplicate is created but the form remains in edit mode (small pencil in the form margin).
I also have a manual record counter on the form which does not refresh to the newest record number following the duplication? Both issues happen together and not independently.
I now have the standard MS Access record counter visible on the form to see what’s happening and this always jumps correctly to a new record number when duplication is triggered, so when the problem happens the MS Access counter is showing one more than my own record counter.
If I use the standard MS Access record navigation buttons and go back and then forward by one record, the duplicated record is then corrected. The edit mode pencil is gone and both record counters read the same, which I assume has happened this has forced a save to happen
So, I thought by using –
If Me.Dirty
Then Me.Dirty = False
End If
- in the current event of the form, would solve the problem, but it doesn’t make any difference at all, it’s still no better, or no worse than before?
Using CTRL + S removes the pencil, but doesn't correct my bespoke record counter?
Thanks in advance?
Regards
Mark