Performin Computations on Date Range Input

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Venky

    #1

    Performin Computations on Date Range Input

    Hi ,
    I was wondering how to set up an interface in which u let the
    user input a date range , and in this date range, i would like to some
    computations like finding the average price of all rocks sold between
    this date and that. Can someone please help ? Thanks.

    Venk.
  • Tom van Stiphout

    #2
    Re: Performin Computations on Date Range Input

    On 27 Apr 2004 09:50:07 -0700, vvenk@hotmail.c om (Venky) wrote:

    Something like:
    select Avg(Price) where SoldDate between
    Forms!frmCriter ia!txtBeginDate and Forms!frmCriter ia!txtEndDate

    Of course this requires that you create a form with two text boxes
    named txtBeginDate etc, and name that form frmCriteria. Perhaps you'll
    even add a handy calendar control to pick a date...

    Poor man's version:
    select Avg(Price) where SoldDate between [Give Begin Date:] and [Give
    End Date:]

    -Tom.

    [color=blue]
    >Hi ,
    > I was wondering how to set up an interface in which u let the
    >user input a date range , and in this date range, i would like to some
    >computations like finding the average price of all rocks sold between
    >this date and that. Can someone please help ? Thanks.
    >
    >Venk.[/color]

    Comment

    Working...