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.

How to display related data at input time?

Featured Replies

Hi all.

This has got to be the most basic question but it's got me stumped!

I have two tables: "Buildings", consisting of two fields: Building_Id (the key, numeric, auto-enter serial) and Building_Name (text).

And "Units", consisting of Unit_Id (key, numeric, auto-enter serial), Unit_Description (text).

A building consists of one or more units.

I want to relate the two files so that when I'm looking at the "Units" layout I'll see what building a unit belongs to; I've added, in the "Units" table, the field Unit_Bldg_Id (number) and created the relationship to connect Buildings::Building_Id and Units::Unit_Bldg_Id.

On the Units layout, I've added the field Unit_Bldg_Id, setup as a drop-down list, displaying values from a value list that "use values from first field" Building_Id in table "Buildings". I've also chosen the option to "also display values from second field" Building_Name from table "Buildings". Finally, I've also chosen the option to "show values only from second field".

Now, when I create a new unit and reach the field in question, I do get my drop-down list and it's displaying the Building names.

However, as soon as I select one of the items in that list, it plunks the Building_Id into the field, and not the Building_Name which it was displaying...

PLEASE... is there a way to get the Building_Name and only the Building_Name in that field???

So sorry to trouble you with such a simple question, but it's really got me!

P.S. Would the answer be to use the Building_Name as the key into the Buildings table and do without the "numeric, auto-enter serial" field altogether???

Thanks!

I've added the field Unit_Bldg_Id, setup as a drop-down list

Change it to pop-up menu

  • Author

Ouch! That was quick and to the point: it solves my problem! Thanks a million!

Thank you Daniele!

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.