Solved

MS Access Report

Posted on 2014-07-22
4
340 Views
Last Modified: 2014-07-23
I would like to hide the detail section of the report. Is there any VBA that I can use? I want to keep the header and totals on the report footer. thanks
0
Comment
Question by:snhandle
4 Comments
 
LVL 4

Assisted Solution

by:Jack Leach
Jack Leach earned 250 total points
Comment Utility
I guess you could set the detail height to 0 (and any controls also), but... why not run a query that gets you the same values as the footer would display, and use those in the detail instead?
0
 
LVL 22

Accepted Solution

by:
Kelvin Sparks earned 250 total points
Comment Utility
Look for the report On Format event and try
Me.Detail.Visible=False

Kelvin
0
 

Author Closing Comment

by:snhandle
Comment Utility
Good
0
 
LVL 57

Expert Comment

by:Jim Dettman (Microsoft MVP/ EE MVE)
Comment Utility
Besides just setting the property to false at design time, you can set the detail's visible property on the fly too...I do this often when I want to give a user a choice between a summary and detail report (like a G/L Trial Balance).

Jim.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now