[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

MS Access conditionally print a group footer

Posted on 2011-02-16
3
Medium Priority
?
505 Views
Last Modified: 2012-05-11
In an Access report I need to print a group footer if the date range is more than 1 day. If not I need to suppress the group footer altogether. I have code in the in the On Format property of the group footer where I compare the dates. This appears to work but I do not know the code to suppress the group footer. Your assistance is appreciated. Thanks.
0
Comment
Question by:StampIT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
RgGray3 earned 1000 total points
ID: 34909392
If you have the logic worked out to decide to cancel the printing of the section

use the Cancel property of the section

Private Sub GroupFooter0_Print(Cancel As Integer, PrintCount As Integer)

    If...  your logic
         Cancel = True
    End if


From microsofts help
"The Print event occurs after data in a report section is formatted for printing, but before the section is printed. "

0
 

Author Closing Comment

by:StampIT
ID: 34917120
Thanks for the help
0
 
LVL 11

Expert Comment

by:RgGray3
ID: 34918102
Glad to help...
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

650 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