G
Guest
I have a setup where the groups, sorting, and fields have their data sources
and visibility set in the report's On Open event based on choices made in a
form. This works fine in 2000 and 2003 but in it causes Access 2007 to crash
with an "Access has encountered a problem and needs to close." message--after
several pages.
I suspect this is related to http://support.microsoft.com/kb/927536/en-us
(Access 2007 may close unexpectedly when you try to change the Control
Source property for a control that is on a report or on a form in Layout view)
I'm not in Layout view, but rather in the On Open stage of Normal (print) or
Preview modes, so that doesn't precisely apply, but it is the closest I can
find.
Going in and specifying all the control sources by hand rather than letting
the code do it does indeed eliminate the error. But it seems awfully odd
that changes to the 'On Open' code would affect something that causes crashes
well into the printing of the report.
The point at which the error happens varies with which fields are selected,
but if the form has the same settings than the crash happens at the same
point in the report every time.
Isn't dynamically setting control sources pretty normal? I'm thinking about
trying to do something with copying the report, opening the copy in design
mode, saving the changes, then opening for preview--all via code. But just
reverting to 2003 seems easier---but annoying.
If there is a known issue I'm missing, or some alternative method that would
get around what is really looking like an Access bug here, I'd appretiate any
insights. Thanks.
and visibility set in the report's On Open event based on choices made in a
form. This works fine in 2000 and 2003 but in it causes Access 2007 to crash
with an "Access has encountered a problem and needs to close." message--after
several pages.
I suspect this is related to http://support.microsoft.com/kb/927536/en-us
(Access 2007 may close unexpectedly when you try to change the Control
Source property for a control that is on a report or on a form in Layout view)
I'm not in Layout view, but rather in the On Open stage of Normal (print) or
Preview modes, so that doesn't precisely apply, but it is the closest I can
find.
Going in and specifying all the control sources by hand rather than letting
the code do it does indeed eliminate the error. But it seems awfully odd
that changes to the 'On Open' code would affect something that causes crashes
well into the printing of the report.
The point at which the error happens varies with which fields are selected,
but if the form has the same settings than the crash happens at the same
point in the report every time.
Isn't dynamically setting control sources pretty normal? I'm thinking about
trying to do something with copying the report, opening the copy in design
mode, saving the changes, then opening for preview--all via code. But just
reverting to 2003 seems easier---but annoying.
If there is a known issue I'm missing, or some alternative method that would
get around what is really looking like an Access bug here, I'd appretiate any
insights. Thanks.