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

Hi

I am in the process of converting my FM6 databases to FM9. I was used to use date strings to get sale reports for a specific time period. I had to replace Today by Status (CurrentDate). For example, I use this calc string to perform a search for the previous month.

DateToText(Date(Month(Status ( CurrentDate )) - 1; 1; Year(Status ( CurrentDate )))) & "..." & DateToText(Date(Month(Status ( CurrentDate )); 1; Year(Status ( CurrentDate ))) - 1)

The result is 09/01/2007...09/31/2007

When I use the above string with a Set Field command, the result is not what expected because the Date field is in date format. So, I need to change the string in order to make it work with a Set Field command.

Any suggestion is welcome

You can use Insert Calculated Result [your calculation]. It mimics the user actually typing. Hence the date field has to be on the layout. You will find that later versions of FileMaker are much more forgiving and flexible about date Finds. You CAN use Set Field in later versions, and the date field does not need to be on the layout; this will work:

Enter Find Mode []

Set Field [ Date_; GetAsText ( Get (CurrentDate)) & ".." & GetAsText ( Get (CurrentDate) + 1) ]

Perform Find []

As will:

Set Field [ Date_; ">" & GetAsText ( Get (CurrentDate)) ]

You can also use wild cards, e.g. "09/*/2007".

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.