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

Hi

I have a calculation for a Cost field I need to do... I need to make sure only the relevant fields are used from other tables, so i need something like this:

sum ( Equipment::RatePerDay ) where EquipmentRental::EquipmentID = Equipment::EquipmentID ....

the problem is in the WHERE ... whats the keyword in FM for this???

Thanks

Costs change with time, therefore you don't want to use relationships to get cost. Use a lookup, the value does not chaneg unless a re-lookup is performed. The lookup is based on a relationship. The cost is no longer a calculation but a number field. The extended cost = cost * time.

Hi Adam, FM does not actually use WHERE statements like SQL does. When you initially set up the relationship, you are effectively creating the WHERE portion of a SQL statement. Thus, if you have a relationship between Equpiment and EquipmentRental based on EquipmentID, then you could just use

Sum ( Equipment::RatePerDay )

to get the result (i think) you're looking for.

Does this help?

Jerry

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.