Solved

Supress Detail

Posted on 2016-11-12
4
19 Views
Last Modified: 2016-11-12
Experts, I have the following SQL in a report.  I am wanting to suppress the details  [Total Incoming] and [Total Expenses] and only show the sum on [Total Incoming] and [Total Expenses].  Its an import from Excel.   I am not sure how to do this in the report.

SELECT Import_FC_Archive.[Total Incoming], Import_FC_Archive.[Total Expenses], Import_FC_Archive.Date_Append, Import_FC_Archive.Date, Format([Date_Append],"mmmm yyyy") AS YearMonGroup FROM Import_FC_Archive;

I have attached a sample db.

grateful for your help
EESupress.accdb
0
Comment
Question by:pdvsa
  • 2
4 Comments
 
LVL 19
ID: 41884607
you can define a calculated field:
   SELECT nz(Import_FC_Archive.[Total Incoming]) + nz(Import_FC_Archive.[Total Expenses],0) as MyCalculatedFieldname, etc

Open in new window

WHERE MyCalculatedFieldname is whatever you want to call the calculated field. If you use spaces or special characters, MyCalculatedFieldname must be surrounded with [square brackets]
0
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 41884683
Go to design view of the report:

Select Detail section Properties, Format.
Set property Visible: No
Save report.

That's it.

/gustav
0
 

Author Closing Comment

by:pdvsa
ID: 41884707
Thank you Crystal.   Gustav's solution was something i could implement quickly.  I forgot there was a property i could set to solve my problem.  

Thanks once again Gustav.
0
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 41884709
You are welcome!

/gustav
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

18 Experts available now in Live!

Get 1:1 Help Now