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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    MartieH 
×

Important Information

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