Can you set up two lines of text in the title bar of a pop-up form?

xavier.batlle

Active member
Local time
Today, 09:43
Joined
Sep 1, 2023
Messages
243
This week I came across that I can set up a two-line title in pop-up forms, but not in standard forms, using some code like this:
Code:
    Me.Caption = "First line " & vbCrLf & "     Second line"
1772359781898.png

According to my tests, it only works in Windows 11 and on popup forms, but some people have reported that it does not work on their Windows 11 computers.
My configuration is as follows:
- Windows 11 - 25H2
- Microsoft Office 365 (64-bit)
- Screen resolution (1920 x 1080)
- Scale (100%) or (125%)

I would appreciate it if you could test whether it works for you and report back here with your own configuration.
Thanks in advanced.
 
Last edited:
overlapping or tabbed, doesn't matter on:
win 11, 25H2
office 2024 x64
1920 x 1080 (screen resolution)
125% (scale)
tabbed.png
 
Does not work for me.
Code:
 Me.Caption = "Form Daily Entry " & vbCrLf & " in Cozumel"
1920*1080 on a 17" laptop
Scales 125%
1772373104056.png


Windows Home 25H2
1772373146129.png
 
using win11
MS 365 64bit
variety of monitors

I get split line on popup but not with a normal form

As a theory, I suspect because a popup is not a child window of the access window
 
@xavier.batlle
When I tried to do this yesterday, I entered the caption on 2 lines directly into the property sheet. That fails in my tests!
However, using code, it does work for me in Win 11 popup forms (but not Win 10)
No idea why that would make any difference!
 

Users who are viewing this thread

Back
Top Bottom