Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple lines in tab caption

Status
Not open for further replies.

Luzbel

IS-IT--Management
Apr 20, 2007
45
PR
I have a tab control in my form which I created in Access 2003 on Windows XP. Since the name (Caption) is a bit long I use CRTL+Enter so that it continues below. When I view the same form on Access 2003 on another PC the name is displayed on one whole line with blocks where there used to be a carriage return (cr/lf).
Any way I can fix this?
 
I wasn't aware the tab captions supported text wrapping. You can use an option group with Command Buttons and position it above the tab control. Set the tab control Style property to none and position and set captions as desired.

Assuming your option group is named "fraTabButtons" and there are buttons for each tab page with values corresponding to the Page Index property. This code references a tab control named "tabMyTab".

Code:
Private Sub fraTabButtons_AfterUpdate()
    Me.tabMyTab = Me.fraTabButtons
End Sub

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top