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.

Have supevisor populate a field based on the department

Featured Replies

I'm not the greatest with relationships so if anyone can help I'd greatly appreciate it!

WHAT: We have a personnel database with several tables. We would like it when a department an employee is assigned to is selected from a drop down list, the 'supervisor' field is populated with the supervisor.

How can this be done? I've already created a 'supervisor' table. The only problem I can see is that all the employees assignments are related to another table called 'assignment history'.

Thanks in advance!

How many supervisors are in a department (minimum and maximum)?

Greg

You don't need a supervisor table for this, but a Department table may be useful. Having one, you can populate it with all the department names along with who the supervisor is (I'm assuming one supervisor per department.) Then relate between Personnel and Department by Department Name (or ID). With this relationship, you can show the supervisor for the employee's current Department. If you're storing the supervisor's ID in the Department table instead of the name, then you'll need another TO of Personnel linked to Department by Department::SupervisorID = Personnel 2::EmployeeID. Use this TO to show the Supervisor's name on the Personnel record.

It's not clear what your Assignment History table tracks, how it's related, or whether you need it to store the supervisor's then name.

  • Author

thanks guys!

basically the employees assignments are kept in a table called "Employment History". In the entry layout it is accessed via a portal (so we can have a running history of where they have been assigned).

On most other layouts a calculation is used to show where their most current assignment is.

Would a calculation be better to show the supervisor then?

A calc is not the answer. If you wish the Employment History to remember the Employee's supervisor at the time of the assignment, then use a text field with an auto-entered lookup to pull the supervisor's name from the Department table (or that Personnel 2 TO I described above.)

  • 2 weeks later...
  • Author

Ender how do you do an auto-entered lookup (I've never done one before)?

I think that might be the answer...basically all the departments are in the (currently named) "supervisor" table along with the supervisor name.

In the "main" table there is a portal to the "assignment" table where a running history of all the departments the employee was assigned to.

So would a auto-entered lookup work in this instance?

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.