K
kiln
I have nested datasheets inside a subform control - that is, there is a
main form, with a subform control, and in that is a form that is only
allowed to run as a datasheet, and it has a subdatasheet. What's not
good is that the verticle scrollbar for the parent datasheet does not
show up most of the time. The reason for the missing scrollbar seems to
be tied to the fact that there are only a couple of records in the
parent datasheet, and Access decides that it does not need to "enable"
vertical scrollbars for this form since the records easily fit inside
the subform. However trouble starts when the subdatasheets are expanded,
they have more records and soon the need for a verticle parent datasheet
scrollbar is needed.
The best I've come up with it to make the subform control very short at
design time, so that on form open, the scrollbar is determined to be
needed, then programatically increase the height of the control. But
this solution only works sporadically, I'm not sure why. Any ideas would
be of interest.
main form, with a subform control, and in that is a form that is only
allowed to run as a datasheet, and it has a subdatasheet. What's not
good is that the verticle scrollbar for the parent datasheet does not
show up most of the time. The reason for the missing scrollbar seems to
be tied to the fact that there are only a couple of records in the
parent datasheet, and Access decides that it does not need to "enable"
vertical scrollbars for this form since the records easily fit inside
the subform. However trouble starts when the subdatasheets are expanded,
they have more records and soon the need for a verticle parent datasheet
scrollbar is needed.
The best I've come up with it to make the subform control very short at
design time, so that on form open, the scrollbar is determined to be
needed, then programatically increase the height of the control. But
this solution only works sporadically, I'm not sure why. Any ideas would
be of interest.