L
Leif
Earilier I placed a question the saving behavior of Access. No one knew the
answer. I've since learned some additional information. Its really weird,
perhaps you can help.
I have Access 2003 with a Windows based server and XP Professional on the
client. I have a main form with no bound recordset. The main form contains
four subforms. All the subforms are bound forms. The main form has some
combo boxes that are used to control the subforms. On the main form is an
unbound text box that is populated by the the choice on the combo box. The
subforms use master/child link to the unbound main form control to coordinate
the display.
The main form has the vertical scrollbar enabled. The main form is long,
requiring scolling on all but high resolution displays.
The problem is this - Ater updating a record on the subform, and then
changing focus to another subform, sometimes the update event procedure is
fired, and sometimes it is not. My discovery is this - It all depends on if
the scroll bar is active or not. In other words, if the screen resolution is
low the scroll bar for the main form is active. The subform update event
procedure is not fired until I close the form or change the record, changing
focus to a different subform does not cause it to fire (unexpected Access
behavior).
If I display the form on the high resolution screen, such that the scroll
bar is not active, an update to a subform, and a change of focus to another
subform, causes the update event to immediately fire (expected Access
behavior).
So I know the problem, I know what causes, however I don't know the
solution. I believe this would be classified as an Access bug, but I need a
work around.
Thanks for your help.
answer. I've since learned some additional information. Its really weird,
perhaps you can help.
I have Access 2003 with a Windows based server and XP Professional on the
client. I have a main form with no bound recordset. The main form contains
four subforms. All the subforms are bound forms. The main form has some
combo boxes that are used to control the subforms. On the main form is an
unbound text box that is populated by the the choice on the combo box. The
subforms use master/child link to the unbound main form control to coordinate
the display.
The main form has the vertical scrollbar enabled. The main form is long,
requiring scolling on all but high resolution displays.
The problem is this - Ater updating a record on the subform, and then
changing focus to another subform, sometimes the update event procedure is
fired, and sometimes it is not. My discovery is this - It all depends on if
the scroll bar is active or not. In other words, if the screen resolution is
low the scroll bar for the main form is active. The subform update event
procedure is not fired until I close the form or change the record, changing
focus to a different subform does not cause it to fire (unexpected Access
behavior).
If I display the form on the high resolution screen, such that the scroll
bar is not active, an update to a subform, and a change of focus to another
subform, causes the update event to immediately fire (expected Access
behavior).
So I know the problem, I know what causes, however I don't know the
solution. I believe this would be classified as an Access bug, but I need a
work around.
Thanks for your help.