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.

Combine contents of 2 fields into 1

Featured Replies

I need to combine a first_name field contents with a last_name field contents into a joined_name field. I have tried a few calculations with poor results, what am I forgetting?

H Chuck,

For Something like John Doe

first_name & " " & last_name

For something like Doe, John

last_name & ", " & first_name

HTH

Lee

  • Author

I must have had a brain freeze, minutes after I posted the problem, the solution came to me.

I used:

LeftWords( First_Name, 1) &" " & LeftWords( Last_Name, 1)

Worked fine, I was creating a certificate and needed the names combined, now if I can figure out how to add the date in a date field to a number from a text field in a related database I can call it a day.

Hi Chuck,

LeftWords( First_Name, 1) &" " & LeftWords( Last_Name, 1)

What else is in those two fields that you need to eliminate? If nothing, just use the fields themselves as First_Name & " " & Last_Name as Lee indicated. I hope you don't have any [color:blue]Van Damme's or such for last names because last name will become [color:blue]Van with your calc. :crazy2: Any Peggy Sue's for first name? She'll get upset if you call her Peggy, you realize! Do you have any with middle initial or MD or PhD, or any initials for first name?

I would take a close look at your data. Names are a tricky business and this is why each PIECE of a name should be in a separate field - so ALL of the field can be used safely whenever you wish. But by pulling just a WORD from a name, you may not get what you want ...

LaRetta :wink2:

Well for goodness sakes! How rude of me! I didn't address your other question!

"... how to add the date in a date field to a number from a text field in a related database..."

Does the number field (type text) in your related table indicate number of days? And you want to add these days to a date field in your main table to produce a new 'date + __ days'? Or is the date 'today's date' or the number actually months, quarters, fiscal, what?

If your related table is the 'many' side, only the number from the FIRST related record will be grabbed if in its natural sort state of creation order. So you may need to sort the relationship, use an aggregate calc or further isolate your relationship. If you fill us in, we can help you further. :wink2:

LaRetta

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.