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

Skipping Detail Lines

Status
Not open for further replies.

sts125

Programmer
Oct 19, 2007
5
US
I have a report in Access 2007 that consist of a Report Header, Page Header, "Employee_ID" footer, Page Footer, and Report Footer.

I am basically printing a summary line for each employee ID with totals.

Currently I am not printing any detail lines, but would like to see if there is a way to conditionally print a detail line if a certain text field is not blank.

Is there a way to conditionally print a detail line, without affecting my summary totals? I don't want to print the detail line for blank values.

Thanks
 
Have a look in help at MoveLayout/NextRecord/PrintSection.


Sure, the early bird gets the worm, but the second mouse gets the cheese in the trap.
 
I would add code to the On Format event of the Detail Section like:
Code:
Cancel = IsNull(Me.txtCheckMeForAValue)

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top