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

How can I make a report display onl

Status
Not open for further replies.

kutibo

MIS
Dec 19, 2000
22
US
How can I make a report display only one report header based on criteria... If the account number is 387 or 390 then display the the building header, else display the account header? Thanks
 
Use the 'on format' event of the report or page header

Private Sub PageHeader_Format(Cancel As Integer, FormatCount As Integer)

if [accountnumber] = 387 or [accountnumber]= 390 then
me.accountheader.visible = true
me.buildingheader.visible = false
else
me.accountheader.visible = false
me.buildingheader.visible = true
End Sub
Mike Rohde
rohdem@marshallengines.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top