Connecting Tech Pros Worldwide Help | Site Map

highest and lowest date

  #1  
Old November 12th, 2005, 09:25 PM
nick_faye
Guest
 
Posts: n/a
hi guys,
im still a newbie in ms-access and i would like to ask how can i
get the highest and the lowest date in ms-access report? for example,
i have these entries:
10/1/2003
10/5/2003
10/2/2003
10/4/2003
10/2/2003
10/3/2003
10/3/2003
what i want to do is to print the highest and the lowest date like
this:
Oct 1, 2003 - Oct 5, 2003. how will i do this this? can somebody
help me? your immediate response is very much appreciated.
  #2  
Old November 12th, 2005, 09:25 PM
fredg
Guest
 
Posts: n/a

re: highest and lowest date


On 6 Mar 2004 22:55:48 -0800, nick_faye wrote:
[color=blue]
> hi guys,
> im still a newbie in ms-access and i would like to ask how can i
> get the highest and the lowest date in ms-access report? for example,
> i have these entries:
> 10/1/2003
> 10/5/2003
> 10/2/2003
> 10/4/2003
> 10/2/2003
> 10/3/2003
> 10/3/2003
> what i want to do is to print the highest and the lowest date like
> this:
> Oct 1, 2003 - Oct 5, 2003. how will i do this this? can somebody
> help me? your immediate response is very much appreciated.[/color]

In a report control's control source:
=Min([DateField]) & " - " & Max([DateField])

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
  #3  
Old November 12th, 2005, 09:25 PM
Allen Browne
Guest
 
Posts: n/a

re: highest and lowest date


Create a query into this table.

Depress the Total button on the toolbar (Upper sigma icon).
Access adds a Total row to the query.

Drag the date field into the query Twice.
In the Total row, under the first one choose Min, and the 2nd one Max.

Use this query as the source for your report.

Alternatively, you could place text boxes on your report, with ControlSource
set to:
=DMin("MyDateField", "MyTable")
and
=DMax("MyDateField", "MyTable")

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"nick_faye" <ivpfmc28@yahoo.com> wrote in message
news:8a5e9892.0403062255.4fb3b2a3@posting.google.c om...[color=blue]
> hi guys,
> im still a newbie in ms-access and i would like to ask how can i
> get the highest and the lowest date in ms-access report? for example,
> i have these entries:
> 10/1/2003
> 10/5/2003
> 10/2/2003
> 10/4/2003
> 10/2/2003
> 10/3/2003
> 10/3/2003
> what i want to do is to print the highest and the lowest date like
> this:
> Oct 1, 2003 - Oct 5, 2003. how will i do this this? can somebody
> help me? your immediate response is very much appreciated.[/color]


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find the greatest date in a arry chandru8 answers 2 June 25th, 2008 01:34 PM
Show the highest and lowest price item sold this month.(SQL) owz answers 5 December 7th, 2006 03:04 AM
generic sql question Dennis Gearon answers 1 November 23rd, 2005 02:36 AM
Intensively used function in view needs a minimum and maximum from a table PartII Hennie de Nooijer answers 2 July 23rd, 2005 08:34 AM