Setting .Top of a TabView causes to to move to top of form.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have encountered some rather odd behavior of the TabView
control in Access 2000.
I have a need to move the TabView programmatically.
I don't believe I've ever had to do this before.
But when I execute: TabViewControl.Top = 0.375 the TabView
instance moves immediately to the top of the form ???

I've tried everything: dis-Enabling, setting Visible = False, etc.
Nothing seems to avoid this problem. Set the TabView's .Top
property and it slams into the top of the form and stays there ???

Thank you,
Peter M. Jordan
 
Peter

The unit to use when setting dimension properties in code is twips.
0.375 twips is a very small distance indeed! There are 567 twips per
cm, so assuming you want .375 cm, try it like this...
Me.TabViewControl.Top = 213
 
Of course!
I don't do enough of the VBA coding and forget these things.
Working much better now and I'm cursing less.

Thank you Mr. Schapel.
 
Back
Top