A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Suppressing undesired lines



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2010, 04:01 PM posted to microsoft.public.access.reports
Richard[_41_]
external usenet poster
 
Posts: 7
Default Suppressing undesired lines

I am developing a report for my supervisor -- he doesn't want to see
individual detail lines under $1,000, but want them included in the
grand total.

How do I suppress lines under 1,000
  #2  
Old April 16th, 2010, 07:02 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default Suppressing undesired lines

Use some VBA code to hide/show the section as appropriate.

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.Amount 1000 Then
Me.Section(acDetail).Visible = True
Else
Me.Section(acDetail).Visible = False
ENd if

End Sub


John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Richard wrote:
I am developing a report for my supervisor -- he doesn't want to see
individual detail lines under $1,000, but want them included in the
grand total.

How do I suppress lines under 1,000

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.