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.

confused about relationships

Featured Replies

  • Newbies

I have purchased several FM Pro books but I can't seem to find the answer that I'm looking for ANYwhere. I currently have two databases -

Database A (student)

Database B (school records)

I have successfully linked the TWO together but now want to link a THIRD database - Database C (contact database). For some reason I can't seem to figure it out. In the student database I have personal info...name, school, etc. Whenever I enter a new record it automatically appears in the Database B (school records). Now I want the same info to automatically appear in the third database but can't find a way to do it....is it possible?

I also have to generate reports and the information needed in these reports has to come from different databases.

Please guide me in the right direction. Maybe I'm on the right track but just haven't got to the last step. I've tried several different possibilities but haven't accomplished what I had envisioned/planned.

Please HELP!

MC

What info does the contact database have in it that is different from the other files. And, what info does the contact database have that is the same as at least one of the other files (this is the field that you build the relationship on). You need to answer these questions in order to set things up.

I have had almost the same problem. I have found a way of resolving it, although i find the solution not entirely satisfactory...

Keep the relationship from file A to B as it is, but create fields in database B that look up the information in corresponding fileds in database A (instead of placing the related fields of database A on your database B layout).

Then, create a relationship from B to C. In database C you can place related fields from database B, that are actually the lookups from database A.

The problem is that a change in database A is not automatically updated in database B.

It should be possible to create a script to update the lookup fields in the related fields (in the case of my database it wasn't yet necessary to find this out, the information in database A being static).

onno

excuse me, in the last line I meant to type lookup fields ot the related database instead of related fields.

If necessary make sure that you are aware of techniques for 'one to many relationships' - a search on the forum will provide more info.

Bob is correct. The most important part of database design is to decide what you are trying to do. It's like worring about how to build a house before you decide what type of house you want to build.

In this case, are students to be treated like any other contacts? If so, student contact information should be entered ONCE in the Contacts file and used by the other files. If not all contacts are students, each contact record can have a field "Type" which can be used to identify the subset of contacts which are students.

A record in Students need not duplicate all of the contact information stored in Contacts. The contact information for a student can just use the related information from Contacts.

The most important aspect is to be clear about exactly what a record represents in each of the files. If you are not sure, STOP immediately and don't keep creating fields and scripts until you have figured this out. Again it's like starting construction on a house without a floor plan, the result is likely to be a disaster.

-bd

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.