Defining Access Orders
You can define up to five indexes or access orders for a form. An access order tells the program the sequence in which to display data on the form.
When a form has more than one access order, you must assign a single alphanumeric value to each access order and choose one access order as the default. You must also paint an Order field on forms with multiple access orders. For more information, see the Order field description in Painting Fields on a Form - Input Field Types.
When you run the form, you type the value associated with the desired access order in the Order field. This tells the form which access order to use when displaying the data. If you do not type a value in the Order field, the form uses the default access order.
In the following example, Employee is the primary file. The form has three access orders. The first access order is by Company and Last Name, the second is by Company and Employee Number, and the third is by Company and Social Security Number. The Order field is called Search Order.
You can mark one or more access order key fields as "required for Next" action. When you use the N action to scroll through the records of a file, and the value of one of these marked keys changes, the form stops scrolling. If you do not mark any key fields as "required for Next," the form stops scrolling on the last record in the file.
In the following example, the key fields are Company and Employee Number. If you mark Company as "required for Next," the N action scrolls only through the Employee file records whose Company is 1. If you do not mark any keys "required for Next," the N action scrolls through all records in the Employee file regardless of their company number.
To define an access order