subform misbehaviour

  • Thread starter Thread starter darren via AccessMonster.com
  • Start date Start date
D

darren via AccessMonster.com

I have an erratic problem that goes something like this.

I have a form with a tab control and on each tab a subform with yet another
subform. However on occasion when I move from one tab to another then
subforms subform appears to be displaying the previous tabs sub/subform???
(Does that make sense?!). If I shut down and restart it is often OK.

There appears to be no logic to it and I don't seem to be able to replicate
the error at will. Has anyone else come across something similar and if so
any suggestions.

Thanks
 
It sounds like one or more of your subforms is sitting directly on the main
form, i.e. it is not in the Page of the tab control.

To test that idea, open the main form in design view, and move the Tab
control to the right. If there is a subform sitting on the form behind where
the tab control was, that's the issue.

To fix it, select the subform, cut it (Ctrl+X), select the desired page of
the tab control, and paste. That should put the subform control into the
page of the tab control.
 
Hi Allen, alas no, that was not the case.

I am thinking that the subsubform being navigated too is struggling to paint
for some reason and e.g. the new tab/subform is loading but not always the
subsubform and the space where it should just holds a ghost of the screens
previous image for that space.

I will recheck the code for the subsubforms to see if there is anything that
is likely to slow the loading/dsiplaying.
 
Hmm.

If it is a display issue (problem with the video card driver), you might be
able to verify that by right-clicking on your Windows desktop, and choosing
Properties. Click the Advanced button, and on the Troubleshoot tab, drag
Hardware Acceleration to None.
 
OK, tried setting hardware acceleration to but to no effect. No ellaborate
code in subsubforms open, load or current events.

If I find the cause I'll post the solution. Until then any ideas welcome.
 
FYI, traced this to a problem with the code. In the clients mde FE it was not
evident but I stumbled across the cause working on something else in the
master mdb. Presumably, as a trait of mde's, in the mde FE there was no error
'event' /handler/message and in an unusual and unique circumstance ( a case
of the client using the db in a manner contradictory to its requested design
criteria) an error was being triggered and the subsubform was simply not
completing its open event. Once I became aware or this unusual problem that
was causing the error I simply 'handled' it.
 
Back
Top