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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

acGroupLevel1Header Problem

Status
Not open for further replies.

Quintios

Technical User
Mar 7, 2002
482
0
0
US
I'm writing a report by using code (I have my reasons...). The problem I'm running into is that when I try to put a label in acGroupLevel1Header I get the error "Run Time Error '2148': The number you used to refer to the form or report section is invalid."

The code in question is:
Code:
Set ctlLabel2 = CreateReportControl(strReportName, acLabel, acGroupLevel1Header, , , 60, 60, 5100, 600)

It's in the right place, I just can't figure out how to define a report section correctly, apparently.

thx!

Q-
 
Answer: You have to use the CreateGroupLevel method. It's in the help file. Easy peasy.

Someone give me a star!

thx!

Q-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top