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.

"recording" a field based on another

Featured Replies

I have a table called log, in this table I have several fields that are imported from a different table.  There are two fields (A and B) that are numerical.  A will have three different values 1,2,3 and B 10 different values (1-10).  I wanted to "recode" the numerical values into different fields in the same table (C and D). For example if A has the number 1, then auto-enter apples in C, if A =2 then auto enter oranges in C, if A is =3 then auto enter peaches in C.  The same For B here there will be 10 values each represent a specific item (1=red, 2=blue,3=black, 4=orange.....).  I have tried with the case function but I have not been succesful... any help? 

Please don't use abstract examples. They are not only extremely difficult to follow; they also lead to less than optimal answers. As it happens, there are several ways to accomplish such "recoding", and the choice depends on the purpose.

 

My guess (!) would be that you need to have a table of "translations", along the lines of :

Code   Value
----   ----
1      Apple
2      Orange
3      Peach

and use a relationship to display the value that corresponds to the selected code in your source table.

I deleted your duplicate post. In the future if you think something went wrong, contact a Moderator for assistance.

 

Lee

  • Author

could this be done by using the case function ? I was trying to do it like this:

Case (fieldA="1";Fieldb="Apple") but i keep getting 0

could this be done by using the case function ?

 

It could, but hard-coding data in calculations is not good practice.

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.