dbTalk Databases Forums  

How get highest and lowest dates for a report

comp.databases.filemaker comp.databases.filemaker


Discuss How get highest and lowest dates for a report in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dale Glaser
 
Posts: n/a

Default How get highest and lowest dates for a report - 08-05-2003 , 03:53 PM






Hi,

I want to print the date range of a found set on a report. Any ideas how
to grab this information.

Thanks,

Dale

Reply With Quote
  #2  
Old   
Bridget Eley
 
Posts: n/a

Default Re: How get highest and lowest dates for a report - 08-05-2003 , 04:36 PM






Freeze window, sort by date, go to first record, set a global date field to
date, go to last record, set another global date field to date, use the
global fields in a merge field to display the date range, eg:

<<gDate1>> to <<gDate2>>

Format the dates by selecting the text object in layout mode then using the
Date command in the Format menu.

Bridget Eley

in article dglaser-2630D9.13530905082003 (AT) c... supernews.com, Dale
Glaser at dglaser (AT) pacific (DOT) net wrote on 6/8/03 6:53 AM:

Quote:
Hi,

I want to print the date range of a found set on a report. Any ideas how
to grab this information.

Thanks,

Dale


Reply With Quote
  #3  
Old   
Bridget Eley
 
Posts: n/a

Default Re: How get highest and lowest dates for a report - 08-07-2003 , 03:17 PM



Sorry, Matt, my mistake: I somehow missed the part about Summary fields and
just assumed you were using the Max and Min functions. Your solution does
work with the current found set, and seemed fractionally faster than sorting
the records when I tested it on a 50000+ record set in a single-user
environment.

Bridget Eley

in article BB57985B.1D420%matt (AT) thesoftwareman (DOT) com, Matt Revenaugh at
matt (AT) thesoftwareman (DOT) com wrote on 7/8/03 10:46 PM:

Quote:
in article BB564CBA.1D3F4%matt (AT) thesoftwareman (DOT) com, Matt Revenaugh at
matt (AT) thesoftwareman (DOT) com wrote on 6/8/03 11:11 PM:

Try and make summary fields that gets the minimum and maximum dates of the
found records.

As long as you are printing the max and min in a page header or page footer
you will find it to be an easy way to do what you want.

I use the merge field technique:
MinReportDate>> thru <<MaxReportDate

---------

On 8/6/03 1:44 PM, in article BB57A5E1.2529%bridgeteley (AT) ihug (DOT) com.au,
"Bridget Eley" <bridgeteley (AT) ihug (DOT) com.au> wrote:

You would need to use a related field within the Max and Min functions to
make this work....



I'm sorry, but you do NOT need a related field to make this work. I just
tried it! Try it yourself. You may find a surprise.

Matt Revenaugh



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.