Hi All
My database front end is structured around a navigation form and each tab on the "main" navigation bar has its own selection of tabs on its respective "sub" navigation bar. For one of my "main" tabs I have a public sub that determines which of its "sub" tabs are visible in different situations (it also adjust the width and right padding of the invisible tabs so that the remaining tabs are always the same distance apart). Most of the time everything is hunky dory but when particular scenarios arise in which significantly fewer tabs are visible than usual the navigation sub bar increases in height by 110 twips, making the form look odd.
My assumption is that something about the formatting of the tabs is forcing the navigation bar to increase in height but no part of the code alters the height or the vertical padding of any tabs or the navigation bar. Dotting debug.prints through the code suggests that none of the tabs change height or padding at any stage of the procedure, they are the same after, during and before. The same debug.prints confirm that at the end of the procedure the height of navigation bar is 110 twips more than before, and I am unable to force it back down again in VBA, it stays 110 twips higher even when I've just told it not to be. Something must be forcing the increase in the bar height but I've run out of ideas as to what and I'd be very grateful for suggestions.
Thanks in advance
My database front end is structured around a navigation form and each tab on the "main" navigation bar has its own selection of tabs on its respective "sub" navigation bar. For one of my "main" tabs I have a public sub that determines which of its "sub" tabs are visible in different situations (it also adjust the width and right padding of the invisible tabs so that the remaining tabs are always the same distance apart). Most of the time everything is hunky dory but when particular scenarios arise in which significantly fewer tabs are visible than usual the navigation sub bar increases in height by 110 twips, making the form look odd.
My assumption is that something about the formatting of the tabs is forcing the navigation bar to increase in height but no part of the code alters the height or the vertical padding of any tabs or the navigation bar. Dotting debug.prints through the code suggests that none of the tabs change height or padding at any stage of the procedure, they are the same after, during and before. The same debug.prints confirm that at the end of the procedure the height of navigation bar is 110 twips more than before, and I am unable to force it back down again in VBA, it stays 110 twips higher even when I've just told it not to be. Something must be forcing the increase in the bar height but I've run out of ideas as to what and I'd be very grateful for suggestions.
Thanks in advance