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.

case function with a wildcard??

Featured Replies

  • Newbies

Hello.

This seems simple, but I can't remember how one might do this.

I have a lot of records that need to be assigned IDs so as to relate them to records in another table. The trouble is that they are all spelled inconsistently and there are slight variations that would need the same assignation. I wanted to build a case function like this:

Case(

b_MatName = *"B&B"*, "038",

b_MatName = *"PVC"*, "044",

b_MatName = *"curb"* "012", "")

I've tried this both with and without the quotes and with the quotes in and outside of the asterisks.... no avail.

Any thoughts?

Thanks,

Sara

Check out the function called PatternCount().

  • Author
  • Newbies

perfect, thanks!

Just a side note, the default option in your case statement is not necessary e.g. you can write it without that last empty string:

Case(

b_MatName = *"B&B"*, "038",

b_MatName = *"PVC"*, "044",

b_MatName = *"curb"* "012")

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.