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

Calculation fields causing problems with SQL queries...

Featured Replies

I'm trying to connect to FM via ODBC. This normally works great, but I've run into an issue where one of the fields I need returned is a calculated field. As such, it cannot be indexed, and that calculation causes a very slow response when working with this particular data selection.

Qty_Available is the field I need returned. It calculates the value based on Qty_Received - Qty_Sold. If create a Qty_Available2 field that is not a calculation field is there a way to have it automatically always have the value that Qty_Available has?

This way I could use the second field in my SQL and since it's not a calculation field it will hopefully be fast. I need it to always match the calculated field, though.

Any information would be greatly appreciated. Thanks!

Calculated fields can be indexed unless they reference a field from another table or a global field. If that's your situation, then you can create a standard field with the autoenter option set to a calculated value. Uncheck the "do not replace" option in the autoenter dialog.

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.