B
bdtmike
Access XP
I have a form that is based on linked tables to a SQL server back end.
The table in SQL has a trigger that fires whenever an update is made
that recalculates some values of a couple of fields. When a user is
editing the form and saves the record, access sends the update to SQL.
This part is normal. However, the trigger in SQL fires and changes the
backend data. When the user edits another field, Access detects that
the data has been changed and puts up the dreaded "Data Has Been
Changed" message.
The only way I can see around this is to force a requery in the form's
AfterUpdate event. This has the unintended sideeffect of changine the
active control. I can save the most recent active control and set the
focus afterwards.
However, there are certain fields where I force the record to be saved
using docmd.runcmd accmdSaveRecord in the afterupdate event for that
control. In this situation, if a user changes a field and
tabs/shift-tabs to another field, the focus remains on that field. is
there any way of determining the "NextControl" where the focus "should"
be going to?
I have a form that is based on linked tables to a SQL server back end.
The table in SQL has a trigger that fires whenever an update is made
that recalculates some values of a couple of fields. When a user is
editing the form and saves the record, access sends the update to SQL.
This part is normal. However, the trigger in SQL fires and changes the
backend data. When the user edits another field, Access detects that
the data has been changed and puts up the dreaded "Data Has Been
Changed" message.
The only way I can see around this is to force a requery in the form's
AfterUpdate event. This has the unintended sideeffect of changine the
active control. I can save the most recent active control and set the
focus afterwards.
However, there are certain fields where I force the record to be saved
using docmd.runcmd accmdSaveRecord in the afterupdate event for that
control. In this situation, if a user changes a field and
tabs/shift-tabs to another field, the focus remains on that field. is
there any way of determining the "NextControl" where the focus "should"
be going to?