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
Solved

Access hide/skip report page on condition

Posted on 2008-10-02
1
280 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
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…
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…

790 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