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

Multiple columns in report

Status
Not open for further replies.

dbaJSmith

Programmer
Sep 17, 2008
42
US
Hello all:
Using Access 2003, having trouble with a 2 column report. The column setup itself works fine, no issues there. The problem now exists in the page header that I created. I duplicated my headers so that they are labeled correctly; when I only have 1 column of data, however, I'd like the second set of headers to be supressed or hidden. Is that an option using Access? If so, how do I go about setting it up? Is it a Section setting to duplicate headers on the columns, or a field setting that suppresses the field when no data exists in the second column set? Thanks!
 
My advice, don't put the headers in the page header. Instead add some sort of grouping (even if you add a literal 1 to your query and group by that) and put your headers in the group header. Finally, set the section to repeat.

You probably could fix it using some convulated VBA solution, but the one thing I am sure of is my solution will be easier.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top