I have this Form that has a Subform.
This Subform is about 75% the area and has only 1 object: a picture.
Let's say I change the picture with a bigger one (bigger than the subform's area). Obviously scroll bars appear.
By moving the scroll bars I can reach the both ends of my (bigger) image, and that's what I want.
If I change the image for another, a smaller one this time, all work as intended but if I move the scrollbars they surpassed the new (shorter) ends of my 3rd image and reach the end of the previous (bigger) image.
(I know how to hide the scroll bars by using the .scrollbars = 0. This not what I want.)
In one sentense: The scrollbars always extend to the limits of the bigger image and they never shrink back.
If I close and re-open the main form, the "limits" reset, but not as long as the form stays open.
How can I have the scrollbars to reach the end of the current image and not the "session's bigger"?
Some things I tried was: setting the .width .height properties of my subform either like this
[forms]![mainform]![subform].width and like this [forms]![mainform].form.[subform].width or [forms]![mainform]![subform].section(acDetail).height ,I have set the detail section's grow and shrink properties
to yes
But with no luck...
This Subform is about 75% the area and has only 1 object: a picture.
Let's say I change the picture with a bigger one (bigger than the subform's area). Obviously scroll bars appear.
By moving the scroll bars I can reach the both ends of my (bigger) image, and that's what I want.
If I change the image for another, a smaller one this time, all work as intended but if I move the scrollbars they surpassed the new (shorter) ends of my 3rd image and reach the end of the previous (bigger) image.
(I know how to hide the scroll bars by using the .scrollbars = 0. This not what I want.)
In one sentense: The scrollbars always extend to the limits of the bigger image and they never shrink back.
If I close and re-open the main form, the "limits" reset, but not as long as the form stays open.
How can I have the scrollbars to reach the end of the current image and not the "session's bigger"?
Some things I tried was: setting the .width .height properties of my subform either like this
[forms]![mainform]![subform].width and like this [forms]![mainform].form.[subform].width or [forms]![mainform]![subform].section(acDetail).height ,I have set the detail section's grow and shrink properties
to yes
But with no luck...