Re: Date range criteria

From: Sahil (Sahil_at_discussions.microsoft.com)
Date: 06/14/04


Date: Sun, 13 Jun 2004 21:37:01 -0700

Thanks Gary

I tried assigning data types to the criteria expression just as the way you had suggested but this gives me an error saying "The expression may be invalid or is too complicated to be evaluated as it may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables"

Can you please help me out of this?

"Gary Walter" wrote:

>
> "Sahil" wrote
> > Can Some one please help me with this;
> >
> > I want to display records between dates selected by the user;
> > Fort his I have two Calendars cal1 and cal2 in the form FrmReconall to select date
> ranges;
> > In the query criteria I'm using the expression Between [Forms]![FrmReconall]![cal1]
> And [Forms]![FrmReconall]![cal2]
> >
> > But the problem is this works fine and displays all records when the range selected
> is say from 6/1/2004 to 6/9/2004. But when I select the dates from 6/1/2004 to
> 6/10/2004 it displays only the first and last records. I'm really not able to figure
> the problem here.
> >
> Hi Sahill,
>
> Your query is treating your parameters as text.
>
> In query designer, select "Query" in top menu
> and click on "Parameters"
>
> Parameter DataType
> [Forms]![FrmReconall]![cal1] Date/Time
> [Forms]![FrmReconall]![cal2] Date/Time
>
> Please respond back if I have misunderstood
> or was not clear about something.
>
> Good luck,
>
> Gary Walter
>
>
>



Relevant Pages

  • Re: Formatting date query Column by week.
    ... Please respond back if I have misunderstood. ... Good luck, ... Gary Walter ... > employees. ...
    (microsoft.public.access.queries)
  • Re: Null Query
    ... [SomeField] ... Please respond back if I have misunderstood. ... Good luck, ... Gary Walter ...
    (microsoft.public.access.queries)
  • Re: Creating empty date field with make-table query
    ... > Another clever method Michel once demonstrated: ... > Please respond back if I have misunderstood. ... > Good luck, ... > Gary Walter ...
    (microsoft.public.access.queries)
  • Re: Need help w/ Challenging Query
    ... SELECT Branch, Billet ... Please respond back if I have misunderstood. ... Good luck, ... Gary Walter ...
    (microsoft.public.access.queries)
  • Re: Licence for Access
    ... the link led to instructions to reinstal after renaming a ... >Hi Sheila, ... >Good luck, ... >Gary Walter ...
    (microsoft.public.access.queries)

Loading