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.

Finds between two dates

Featured Replies

Dear All

I would like to know if i have a field to enter (say Date1) and a field (say Date2)

How can I find the records between two dates?

or just enter into a field (Date2) ...I find all records before Date2? or just enter DAte1 ..I find all records after Date1

All by entering data in to Date1 and Date2 ...(not go search by ... in criteria)

Thanks all

Hi:

Sorry it may be just me, but I'm having a hard time understanding your english. If I understand your problem, then you need to find records that have a date range in a field. Then you want to set up two global date fields that will be the from...to date ranges (I will call g_FromDate and g_ToDate)?? If so, then you make a script like this:

Enter Find Mode [ ]

Insert Calculated Result [select, "DateField" , DateToText(g_FromDate) & "..." & DateToText(g_ToDate)]

Perform Find [ ]

If this is not what you are talking about, please clarify.

Ken

If you are doing it manually, rather than by script, just put the following in the date field in Find mode:

< 5/30/2002

> 7/4/2002

5/30/2002 ... 7/4/2002

HTH.

  • Author

Thanks kenny

That is all I want ...and Now I understand the concept of it ...

Thanks alot ...

  • Author

May I know why ...g_date is a date field ...why we need to type function

Datetotext ?

Just curious about it

Thanks

I'm still a little shaky on this, but i'm guessing it is because when you put anything besides just a date (like the "..." which is text), it won't recognize it.

Ken

  • Author

If the layout with only two global date fields ( not include Datefield) then it does not work ...but if I include Datefield in the layout then it works

U know why is like that?

That is because the command Insert Calculated Result [ ] requires the field that the operation is being performed on to be on the current layout. Sorry I should have mentioned that. If you don't want the field on the layout, then you will have to put a Go To Layout [ ] command in the script.

Ken

  • Author

Thanks alot Ken

I think that because we use function Datetotext is when u type on the date field (as Date field) ...it is the text data entered (not a date data entered ). I experienced it because I change two global date field to two global text field then when i enter data on two global text field with format (mm/dd/yyy) . It works well.

Sorry about my english ...hope u got my idea

Thanks Ken

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.