Jump 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.

Problem with finding last name when hyphenated

Featured Replies

Searched the forum threads for this problem but came up empty handed.

I am searching the "last name field" for names M I also get the "Smith-Doe" name included in the search. Is there a way to avoid getting these hyphenated names in both searches?

Many thanks,

you will probably have to create a calculation field to search in instead of the field itself.

The calculation field would be something like this:

TheSearchField

Left ( TheField ; Position ( TheField ; "-" ; 1 ; 1 )-1 )

  • Author

Many thanks Stuart, I will set up this field and let you know how it works..........Ray

  • Author

Stuart, the calculation works great and returns the characters to the left of the hyphen but if the field is not hyphenated it is left blank. I also need the calculation to put the last name in the field if it is not hyphenated. Thanks, Ray

You can put a case in Stuart's calc for it to be:

Case ( PatternCount ( TheField ; "-" ) > 0; Left ( TheField ; Position ( TheField ; "-" ; 1 ; 1 )-1 ); TheField )

or you can change the calc field to filter out the name and go that route

Filter ( TheField ; "ABCDEFGHIJKLMNOPQRSTUVWXYZ" )

Thanks mr_vodka for adding in my rather daft oversite :

I've always liked the idea of designing a whole database on paper without actually doing it (kind of like musicians sheet music)

Guess i need to wait a while before doing that... hehe

Edited by Guest

  • Author

John, works slicker than greased lightning! I am not very familiar with many of the functions but I can see the "Case" function works like an "If" statement. Many thanks to you and Stuart for your kind assistance..............Ray

Create an account or sign in to comment

Important Information

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

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.