Putting a Condition in A Report Layout

Posted on 2011-05-03
Last Modified: 2012-05-11
Click on "Report1" based on tblCustomers.

I have customers who buy things. The full non-discounted price of the Sales Order goes into "OrderValue".
If they are very nice to me (!) I set the SpecialPriceUsedYN flag to "Y" and enter an overriding price in the field SpecialPriceValue.

Therefore in tblCustomers there can be 2 values   "OrderValue" AND "SpecialPriceValue".

Simple Question:
See yellow field on Report1.

How can I put the OrderValue in the YellowBox if "SPecialPriceUsedYN=N"
How can I put the SpecialPriceValue in the YellowBox if "SPecialPriceUsedYN=N"

Question by:Patrick O'Dea
    LVL 12

    Accepted Solution

    I cannot open the database, as it is problably made in Access 2010.
    But you can try this in an Unbound field or in a Query;

    Assuming the SpecialPriceUsedYN is a Y/N field;


    Author Closing Comment

    by:Patrick O'Dea
    Thanks Daniel,

    Nice and easy !

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
    Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
    Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
    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…

    729 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