Where Definition

When you double-click on one of the cells on the Condition row of the Query_Grid, the Enter the where definition dialog box is displayed. The current Table and Field names are displayed in the top left corner.

A Logical Operator is then selected from the drop down box, for example =, <, >, <=; >=, <>, and so on, and a value is then entered in the text box. For example, to set the condition of all patients over the age of 15 the operator is > and the value is 15.

If you need to create a more complex formula, simply add a logical operator after this condition such as OR or AND, then type a second condition. Alternatively, to enter a range of values use > 15 in the Condition line, then < 65 in the OR line. The result will be all patients aged between 16 and 64.
Note: You cannot add an OR condition if the first condition line is empty.
Note: When using Dates in Query Builder, the format must be DD-MMM-YYYY, for example, 09-JAN-2000

Conditions can be very complex. If you are unfamiliar with the concept of operators and conditions practice with some simple examples and gradually expand the criteria.

Use the Expert Mode tab to enter calculated field definitions more quickly once you are used to their syntax and how the program operates. The right side of the window lists the data fields and the calculated fields already defined, while the left side lists the operators. No special assistants are provided, and variables are created manually.

Note: When using Dates in Expert Mode the format must be 'DD-MMM-YYYY' with the date surrounded by single quotes ' '. For example, '09-JAN-2000'.