VBA CreateReportControl

  • Thread starter Erfan via AccessMonster.com
  • Start date
E

Erfan via AccessMonster.com

Hi,
I want to add control to the grouplevel3 & 4 but there was only
acgrouplevel2Header
how can I do that?
 
A

Allen Browne

From memory, you can create up to 10 group levels.
The lack of constants won't stop you.

In the code window, press F2 to open the Object browser.
Search for:
acGroupLevel2Header
You see it is a memeber of acSection, which also contains:
acGroupLevel1Header = 5
acGrouplevel1Footer = 6
acGroupLevel2Header = 7
acGrouplevel2Footer = 8

Can you guess what numbers you might need to use for the 3rd header and
footer?

You could create your own constants if you wish:
Const acGroupLevel3Header As Long = 9
Const acGrouplevel3Footer As Long = 10
and so on.
 
Top