Lookup boxes and search windows
A lookup box is a field in a window, or a grid cell, where you pick an existing card, such as an account, a customer, a material or a warehouse. You do not type the full name. You type part of the code or the name, and the program finds the card or shows you a list to pick from.
How the field works
When you type part of the code or the name and then press Enter or move to another field, the program looks for the cards that match what you typed. In fields of windows F2 and F3 start the search too, and in a grid cell F3 does:
- If only one card is found for what you typed, or one card matches it exactly, the program puts it in the field without opening a window.
- Otherwise it opens a search window that lists the matching cards. Pick a card by double-clicking it, or select it and press
Enter. - If you close the window without picking, the program clears the field.
- If you clear the field and move on, the program does not search and the field stays empty.
- To see all cards, press
Enterin an empty field. If the file has no card of this kind, the program opens a new card.
At the end of a lookup field there is a small button with the tip Search. It searches for the text in the field. A disabled field does not show it. F6 switches the text shown in the field between the code and the name of the card.
The search window

The window lists the cards that match your text. Fields such as accounts, materials, warehouses and currencies open a search window with a toolbar, a count of results and a choice of the fields to search in. In the window you can:
- Change the text in the search field, and the list updates at once.
- Change the search type by pressing
F3. - Add a new card with the New button, if the field allows it. Press
Ctrl+N. - Pick a card by double-clicking it, or select it and press
Enter.
The window is described in Lookup boxes, edit boxes and search windows.
Search types
The type you choose changes how the program matches your text. The search window shows the types under the names below, and each matches a choice in Program Options > Search:
| Type in the window | What you find | Matching choice in Program Options |
|---|---|---|
| Contains | Cards whose field contains the whole text anywhere. | Search for Initials |
| Search for Words (Order) | Cards in which the words you typed appear in the same order. | Search for Words |
| Search for Words (Ignore order) | Cards that contain every word you typed, in any order. | Search for Words (Ignore order) |
| Matching | Currently works like Search for Words (Ignore order). | Search for Initials (Only) |
If you never saved the option, the window starts with Contains, while the field itself searches with Search for Words (Ignore order). To change the original type, open Program Options > Search. See Program options: terms and fields.
Contains and Search for Initials are saved as one setting, but they do not search the same way. The window finds the text anywhere, while the field itself shows, with this choice, a list in alphabetical order that starts at the first card whose code or name equals what you typed or comes after it. The same applies to Matching and Search for Initials (Only): the field looks only for the cards whose code or name starts with what you typed. The window saves its type when it closes. A type you switch in the newer lookup box is not saved.
Going to the card
After the field holds a card, right-click it. This applies to fields of windows, not to grid cells. The menu has, after the text items, items that open the card itself or its reports, such as Account Card and Ledger in an account field. The kind of field decides which items appear, and some need a report permission.
Example: pick an account in an entry
In a new entry, you want to pick the account «rent».
- Move to the account cell of the first line.
- Type
renand pressEnter. - Several accounts contain these letters, among them «Prepaid Rent» and «rent», so the search window appears. Double-click «rent». If you typed
rentin full, one name would match the text exactly, and the program would put it in the cell with no window.
The account appears in the cell with its code and name. To go to its card, press F9, or right-click the row number and choose Account Card.
Related
- Lookup boxes, edit boxes and search windows: the windows, the menus and all their items
- Search for a card and select it
- Working in grids
This page applies to alameen ERP 10, version 10.1.79.764.