Jump to content
Sign in to follow this  
Jimjmn

Date Range Search

Recommended Posts

I am new to FM and am wanting to produce a report that is sorted by a range between two dates. I have tried to no avail to have maybe a custom dialog box that would gather the dates and them import them into the search field (purchase date) and then search. I know that I can manualy type the dates into the field seperated by "..." but I would rather it be a little more automated. Any ideas?

Share this post


Link to post
Share on other sites

Jim

Create a script that would produce yur dialog box and after the user choose "OK" button then add this to the script.

1)If(lastmessagechoice)=1

enter find mode

2) insert calculated results (choose the target field,

then choose the two date fields with your"..." between them.

3) preform find.

You need to use the "Get(DateasNumber) function before your two date fields in your calculation.

Example:

Get(DateasNumber)(date1)&"..."& Get(DateAsNumber)(field2).

Hope this helps

Lionel

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.