Skip 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.

Repeating Field Calc "?"

Featured Replies

I have been playing around with the FM solution called “Time Card”….I am trying to understand repeating fields and calcs (yep, I know everyone here says to stay away from repeating fields).

But I would like to use something like this in my db, and I only need a couple of fields from the example.

In the db

There is a repeating field called “Day Type” this field has the type of day worked “Regular”, “Holiday”, “Vacation” etc.

There is a repeating field called “Hours Worked” this of course holds the total of hours worked for a specific day.

So you would have:

1/14/2008 1:00pm 3:00pm “Holiday” 2.00

1/15/2008 5:00am 7:00am “Holiday” 2.00

1/16/2008 4:00pm 7:00pm “Regular” 3.00

Since the fields are repeating can you extract the above “Holiday” hours to a calc field to show the total “Holiday” hours= 4.00

James

Edited by Guest

You would need another repeating field (or two) with a calculation =

Case ( DateType = “Holiday” ; Hours Worked )

Then you can sum the total in this field by using the Sum() function.

I know everyone here says to stay away from repeating fields

No, not everyone:

http://www.fmforums.com/forum/showtopic.php?tid/190245/

But in this type of situation a related table with a separate record for each worked period would offer a much better solution - esp. when it comes to reporting.

  • Author

That shows it in a very different light. I see that they do have their place.

I had just taken it as point blank "Do Not Use Repeaters" now I have learned somenting else.

Many thanks.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.