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.

Merging data in several fields

Featured Replies

  • Newbies

hello everyone,

i'm updating our database and i'd like to combine several fields into one field. we have several fields like "notes" "comments" etc. and i'd like all of the data of these fields to go into one field, and then delete the fields we no longer use.

can someone let me know how to do this?

maybe there's a script, or is it a built-in function of fmpro?

i couldn't find anything like this in the help files.

thanks very much in advance

alexandra

Hi Alexandra,

Since this is a one-time thing, you can use Replace Contents. Show All Records then place your cursor in Field 1. Back up first. To combine Field 1, Field 2 and Field 3 into Field 1, enter the following calculation in the Records > Replace Field Contents calc box (not while networked):

TrimAll(Field 1 & " " & Field 2 & " " & Field 3 ; 0 ; 0 )

After verification that the fields have combined into Field 1, you can delete the other fields. :wink2:

Updated: I got sloppy. If any field is empty you would have an extra space so I corrected it by wrapping it with TrimAll(). In this way, empty fields are accounted for and you don't need an IsEmpty() test on the fields.

LaRetta

Edited by Guest

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.