Layered controls are elements that you place at the same location of a report band, and then use PrintWhen
expressions to conditionally display one or the other at runtime. You can use layered elements to customize the circumstances under which the elements display and enhance a report's ability to communicate important information.
PrintWhen
expression, display properties, and placement properties for each element using the Properties sheet, as follows:
PrintWhen
expression for each element. For example, you might specify the following expression to display one element when shippeddate is later than requireddate (that is, late) and another element when shippeddate is earlier than requireddate:
First element query.shippeddate LTE query.requireddate
Second element query.shippeddate GT query.requireddate
Tip: When you specify identical placement properties, you access the individual elements through the Layered Controls menu.
PrintWhen
expression.
The Properties sheet displays properties for the selected element.