Solved

Access hide/skip report page on condition

Posted on 2008-10-02
1
279 Views
Last Modified: 2012-05-05
Hi experts,

how would you skip or hide a page based on a value on a control on the page? lets say I have a control Accbalance and if it's a negative value skip that page from printing.

Thanks
0
Comment
Question by:1desman1
1 Comment
 
LVL 10

Accepted Solution

by:
slamhound earned 500 total points
ID: 22631194
You could use the OnPage event of the report and set the visible property of everything on the report to False.


    If Accbalance < 0 Then
        Me.Title.visable = False
        Me.Something.Visible = False
    Else
        Me.Title.visable = True
        Me.Something.Visible = True
    End If

Open in new window

0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
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…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 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