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

  • Newbies

I have three layouts. Layout "A" contains records with a start date and a finish date. Layout "B" is a find layout. Layout "C" is a summary layout. On my "B" layout, I have buttons that find records within a given range from the current date (ie. "within 30 days", "within 60 days", and "within 90 days".)

Let's say I click on the "within 30 days" button on the "B" layout. I want a script that performs the following: Go into the "A" layout, find all Start Dates of the records that are within 30 days of the current date, and show those records on the "C" layout. The date format of the "A" layout is mm/dd/yyyy.

I think I can help.

Here is an example using a 30 day request:

Goto Layout "A"

Enter find mode

Paste Current Date (select date field you are searching)

Paste Literal (do NOT select entire contents, "...")

Paste Result (do NOT select entire contents, select date field, "Today + 30")

Perform find

Goto Layout "C"

You can use the same example for 60 and 90 day searches. You could also shorten the script by performing the appropriate find 1st and then simply "Perform find" and restore find requests. Of course you would still need to switch layouts.

Hope this helps!

JM

[This message has been edited by JM (edited November 17, 2000).]

quote:

Originally posted by JM:

I think I can help.

Here is an example using a 30 day request:

Goto Layout "A"

Enter find mode

Paste Current Date (select date field you are searching)

Paste Literal (do NOT select entire contents, "...")

Paste Result (do NOT select entire contents, select date field, "Today + 30")

Perform find

Goto Layout "C"

Do NOT use the Today function. Use the Status ( CurrentDate ) function instead. You pay dearly for use of the Today function and I find that there is no longer a need for it.

Just say no.

Basically the Today function calls a internally stored calculation that is stored in every record of your DB. This recalculates everytime you open the file.

Status ( CurrentDate ) gives the same result, but is not stored and only calculated once as you use it.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Consultant

Database Resources

mailto:[email protected]

http://www.database-resources.com

=-=-=-=-=-=-=-=-=-=-=-=-=

  • Author
  • Newbies

Thanks JM. It worked like a charm. I just substituted the "Paste Literal" with "Insert Text" because I'm using FileMaker 5. Thanks for the help.

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.