logo


57.2.8 Query Store: Command: Order by Formula


Action of the command

This command allows you to sort using a formula. The result of the formula determines the position of the record within the selection. The result can be a numeric, string, boolean, date or time.

This will be rarely used:

a It is slow. In fact it excruciatingly slow. Avoid it at all costs!

b It is easy to make errors in the formula definition

After selecting Order by Formula from the drop down menu or after clicking on a Order by Formula line in the Order By Display pane, you will see the Order by Formula editor controls:

 

Query: Command: Order by Formula: Controls

Formula Area

To enter a Formula click on the Formula Button. The following page will display:

 

Order By Store: Command: Order by Formula: Formula page

General Considerations

The result of a formula MUST be a numeric, string, boolean, date or time. A formula may reference any fields from a related table.

Creation of a Formula

This area consists of several items:

Single Character Buttons - Displayed at the top of the page. These remind you of the Operators and Special Symbols that you can use in a Formula. Just Click the Buttons to automatically add or insert the character in to the Formula Text.

Fields area - Select the Field you require and then click Move Field Button to enter the selected field into the Formula area.

Function area - Not completed yet. We may add special functions that you can call from here later. Do not use at present.

Once you have completed your function, click on OK to record your Formula in the Editor.



Harrowex Pty Ltd
http://www.hxmedical.com
Voice:+ 61 4 27 344 279
Fax: +61 3 52 439 019
static@hxmedical.com