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.

Featured Replies

I have two tables: Contracts and Payroll.  In the contracts table each record has a start and end date.  I want to auto enter the pay period code based on these dates. 

Each record in the payroll table has a pay period start and end date, as well as a Pay run ID. 

payperiod.PNG.7e75b6f2ecf238052d37a1f1a57a8ae3.PNG

The tables are related: Contract primary key in Contract table to Contract foreign key in Payroll table.

I don't know if I should use If, Let, Look up??  I don't want to use Case, because then I'll have to change the calculation each year.  I'd rather add 12 records to the payroll table for the 12 months each year. 

These are two calc's I've tried, each calculations return "1".

If  ( Work_Date_Start ≥ Payroll::Pay_Period_Start  and Work_Date_End ≤ Payroll::Pay_Period_End; Payroll::Pay_Run_ID )

Lookup  ( Payroll::Pay_Run_ID ;  Work_Date_Start ≥ Payroll::Pay_Period_Start  and Work_Date_End ≤ Payroll::Pay_Period_End )

Thanks much!

  • Author

Clarification - the tables are connected in the relationship graph, but the Payroll records are not related to the Contract records. 

They're connected but not related? I will ponder that.

Meanwhile, one solution would be to make a new table occurrence and relationship using the start/end dates. That will make it really simple, you won't need a calculation, the relationship will handle it.

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.