Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Find Function on multiple fields

Featured Replies

Hello,

I'm constructing a database for a chemistry lab that I work in. It is an inventory database and I'm writing a script that will perform a search function.

In the database there are three fields i would like to search: "Common Name", "Formal Name", and "Alternate Names". Chemists are not too bright so we have 8 names for everything. All three fields are in the table "Supplies".

What I would like is the ability to search all three fields at one. This is my current script that performs a search of the field "Common Name":

Enter Find Mode[]

Show Custom Dialog["Find An Inventory Item"; "Enter Item Name"; Supplies::) Common Name]

Go to Field [supplies::Common Name]

Perform Find[]

Sort Records[Restore; No dialog]

Halt Script

This works fine for searching the common name field. If anyone knows how to expand the find so that I can search all three fields and show the records I would be most grateful.

Thanks

js22

How about:

Enter Find Mode[]

Show Custom Dialog["Find An Inventory Item"; "Enter Item Name"; Supplies::) Common Name]

If [ not isempty(Supplies:: Common Name) ]

Set Variable [ $Name ; Supplies:: Common Name ]

New Record/Request

Set Field [ Supplies::Formal Name ; $Name ]

New Record/Request

Set Field [ Supplies::Alternate Names ; $Name ]

End If

Perform Find[]

...

  • Author

Thanks so much, that was just the trick.

js22

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.