The Access Tab control has properties for Font Name, Size, Weight, Italic, and Underline. These are found on the Format tab of the properties window for the Tab control (not of the individual pages). The text that appears on the tab of each page can be edited by modifying the Caption property on the Format tab of that page's properties window.
I tried using your coding, but received a compile error on the following:
Compile error:
Method or data member not found
Private Sub Form_Load()
DoCmd.MoveSize 0, 0, 6650, 5200
' Create an instance of our FormatByCriteria class
Set TB = New clsTabs
' You MUST set the CriteriaControl prop TB.TabControl = Me.TabCtl
' You MUST set the BackGround control
' used to display the current pages background color
TB.BGControl = Me.RecBG
' Parent Form
TB.TabForm = Me
' Set the desired Rotation amount
TB.RotateDegree = 90
Likely the cause is that your tab control on the form is not named "TabCtl". That would give the error "Data member not found". There is a lot of neat stuff on Lebans web page, but I only looked at the demo and did not actually try to use the class module.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.