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.

Button Set-up Calculation

Featured Replies

Hello,

I'm working in a database I just created that has 4 tables: Employee, Managers, Departments, and Office Locations. This is my issue:

- I create a new employee record

- This employee is also a manager

- I would like to have a button that will create a manager record with the same Last name and First name as the employee I'm entering

Is this possible?

I came up with something close but its not quite there:

If (Manager? = Yes)

Go to Layout (Manager Form)

New Record/Request

Set Field (Empl: LastName; Mang: LastName)

Set Field (Empl: FirstName; Mang: FirstName)

Go to Layout (Original)

Else

End if

I know I get mixed up somewhere on the Set field part. Unfortunately, I'm not that experienced with scripts & calcs yet.

Please help!

I would like to have a button that will create a manager record with the same Last name and First name as the employee I'm entering

I believe this is unnecessary. Both Employee and Manager has Last Name, First Name, Social Security, Birthdate and the list goes on. They are the SAME entity and should reside within the same table.

You can instead have a field called Manager. And, if you decide that an Employee is also a manager then have field called Manager which holds the Manager's Title. Then you would have a ManagerID field which would hold their manager's employeeID. There is no need for redundant data at all. :wink2:

Edited by Guest
Reworded a bit

I agree with LaRetta here. Having these are two separate tables do not make sense. You may want to take a look at the links in this thread.

http://fmforums.com/forum/showtopic.php?tid/194038#285071

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.