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.

range script with "..." not running

Featured Replies

I

The order of your year fields appears to be reversed. Insert Calculated Result [DATE, LOW DATE & "..." & HIGH DATE] should work, if the fields are truly number fields.

I read this to say that the dates are just the four digit years and the are Number fields

and that Your High and Low dates are number fields (maybe globals).

If that is correct, then this script should do it.

Enter Find Mode []

Set Field [

Hi,

My bad. Didn,'t read the thread.

Though.

"Your High and Low dates are number fields (maybe globals)"

Must be globals actually. If not "..." is entered alone.

Unless Lee meant "global fields (maybe number)"...

"Low...High" is reversed though, but it shouldn't give you the error you've got.

Note that even reversed, it would work with global Num fields, while it won't with global Text Fields tongue.gif

Ok, ok, it was a little hint (albeit not very well expressed hint), that the fields need to be global numbers. Thanks UGO for making this point better than I. You won't get very far if you use regular fields, FM will complain about it. smile.gif

Also, I didn't catch the fields being reverse in the post, although I did show them correctly in my script. BTW, if they are reverse, FM will find dates matching the highest number, at least that's what it did in a little test I made. (I don't know why it picked the highest number though).

Lee

Dancing-Chilli.gifDancing-Chilli.gifDancing-Chilli.gif

Probably because 2004...2001 is converted to 2004 only

  • Author

Hey everyone:

I tried what Lee suggested

Enter Find Mode []

Set Field [

U_Database.zip

You weren't paying attention. We made a big thing of about the Low and High fields having to be Global fields. Yours are not. Change them to Global and it works.

When you change the fields to Global, add the g_ in front so that you will know in the future that these are global.

BTW, when you change them from number to Global - Number, FileMaker will warn you about the loss of data, but this shouldn't affect your files, as your data is really in the other field.

Lee wink.gif

  • Author

You were totally right, Lee. I changed the low/hi fields to globals, and the script now works.

Sorry for not listening carefully enough the first time.

Thanks for the help!

smile.gif

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.