Full Version: Subforms
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
selfgovern
I have (somebody else's code...again) several subforms which must appear, based upon separate button clicks, in the the same place on the main form. The previous programmer had pre-positioned them at that spot and pre-dimensioned them. Needless to say, getting to an individual form to work on it was a nightmare.

I reduced them in size and positioned them on the main form so that I could get at each of them easily to work on them. I also created a table with position and dimension fields and at the time of their appearance, position, dimension, enable, and make the form visible.

Access chops off the left side of at least some them (during run-time) if they are reduced in width beyond a certain point (during design). Why should Access care what the dimension is set at in design if it is being re-set at run-time?

Thanks,
Dave
balaji
After you redimension them are you repainting them using me.repaint or something like that. That might clear the problem.
selfgovern
That doesn't do a thing, and the subform itself has no refresh or repaint.

Thanks,
Dave
balaji
Sorry, I am not sure what else to look at. Is there a reason for designing them small and then resizing them at runtime? Why not design them the way you want it to look? Afterall, once you are done working on them (the design is finalized), why do you care what they look like in design view?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.