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.

Searching multiple date fields

Featured Replies

Hi,

We have a database with various renewal dates.

Each date field relates to a different renewal type, and is its own field.

I can easily do a search on Renewal type 1's date field to bring back results / sort.

What i'd like to be able do it is search across multiple date fields, and bring back a list of results if any of those fields say are less 30 days in the future.

Is that possible?

Thanks

 

It is possible, but tedious. Why not use a single RenewalDate field, with a RenewalType field alongside it? If the same object can have multiple renewal dates of different types, use separate records in a related table or possibly - if the number of types is fixed - a repeating field. Then you will only have one field to search. 

With your current structure you need to create a separate find request for each field, e.g. 

Set Variable [ $criteria; Value:"<" & Get ( CurrentDate ) + 30 ]
Enter Find Mode []
Set Field [ YourTable::RenewalDateA ; $criteria ]
New Record/Request
Set Field [ YourTable::RenewalDateB ; $criteria ]
New Record/Request
Set Field [ YourTable::RenewalDateC ; $criteria ]
Perform Find []

 

  • Author

Great thank you thats works!

Yes I am a Filemaker novice and sure I could of been more clever with using the fields as you suggested, but we are doing lots of importing etc and seemed easier to have separate fields.

I created a script and a button for this search so easy enough!

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.