### Formatting objects conditionally

You may want to create a report that uses different formats depending on the field value. For example, you may want to create an international report that prints currency values for each country in the format that is common in that country. You can do that using multiple sections.

###### To format objects conditionally

1. Create a report. See Creating the report. Ensure you report contains the `Last Year's Sales` field found in the `Customer` table.
2. Create one Details section for each country that requires a unique format. See Using guidelines.
3. Make certain that each of the Details sections contains the same data; every field that you place in the Details A section, you must also place in the Details B section, and in the Details C section, etc.
4. In the Details A section, select the `Last Year's Sales` field and then click `Object Properties` on the Supplementary toolbar.

   The Format Editor appears showing the Number tab.

5. Set the currency style you want to use for the first country.
6. Click `OK` to return to the report.
7. Click `Section Expert` on the Standard toolbar.

   The Section Expert appears.

8. Select the Details A section in the `Sections` box. Select the `Suppress (No Drill-Down)` check box.
9. Click the `Conditional Formula` button to the right of the `Suppress (No Drill-Down)` check box and use the Format Formula Editor to create a formula that specifies the conditions under which the section should be suppressed.

   For example, if the Details A section contains currency values for the UK, you would create a formula that specifies that the country value is not equal to UK. In other words, you create a formula that suppresses the section when the country value is not UK. This will make the section print only when the record contained a UK value.

10. Repeat Steps 4 through 9 for each additional section.

Now, when the report is printed, the date and currency data for each country appears in the format that is expected for that country. See Working with conditional formatting.

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com