When I click tab - whole tab control moves up?

Djblois

Registered User.
Local time
Yesterday, 17:17
Joined
Jan 26, 2009
Messages
598
I am using a tab control for different pages on a new program I am making but whenever I click on the third tab it moves the whole control up on the form. Why is it doing this?

Here is a copy of the new program. Look at the frmSellingMain form. Also, if anyone wants to look at it and give me any other pointers that is appreciated as I am always willing to learn
 

Attachments

I am using a tab control for different pages on a new program I am making but whenever I click on the third tab it moves the whole control up on the form. Why is it doing this?
Could you please explain this bit. Does it happen in design view or in form view? Does it move the tab up or the controls on that page?
 
I have had this problem and it drives me absolutely crazy.

The issue (I think) is that the container (aka subform) on the tab page (or other container) is slightly larger than (or the same size as) the tab page. This is because with Access form development, there is no WYSIWYG editing. Try adjusting the size of the subform (or other objects) on the tab page down.
 
I've just opened your db and I've seen what you mean. The problem is this - If your tab control is taller than the Detail section of your main form (in comparison to the screen height) it will "jump" up to try to compensate for lack of space. It would be hard to contain this problem if you're looking to roll-out your db to multiple users, in which case you would be looking to write code to handle this effectively.

The dimensions of your Tab control depend upon the dimensions of your subform control. So in other words your tab control cannot be shorter or narrower than your subform control. In order to stop the jump, you should decrease the height of your subform control, then decrease the height of your TAB control (not the page).

To keep things consistent, set the height of all your subforms to be the same. Do the same for the width. Then also do the same for the subform controls. You may also want to set the top and left properties of the subform controls as well.

I hope this helps.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom