Connecting Tech Pros Worldwide Help | Site Map

Criteria

  #1  
Old November 13th, 2005, 12:57 AM
Jonny
Guest
 
Posts: n/a
Hello,

I have a list box which displays the date from and date to of each of
my records.

I also on my form, have a date from and date to box at the top. Both
of these are unbound, and are to be used as criteria options. For
example, if I enter 01/05/2004 in the From Date and 01/06/2004 in to
To Date, I only want the list box to display the records between
thesedates.

Can anyone tell me how to do this please ?

Thanks.
  #2  
Old November 13th, 2005, 12:58 AM
David
Guest
 
Posts: n/a

re: Criteria


The record source for the list box is a query. In the relevant date field in
the query criteria box you need
something like - Between [Forms]![formname]![fromDate] And
[Forms]![Formname]![toDate]
Then you will need to requery your list box
HTH
David B


Jonny <jonnymenthol@yahoo.com> wrote in message
news:14f4e726.0406180610.62640053@posting.google.c om...[color=blue]
> Hello,
>
> I have a list box which displays the date from and date to of each of
> my records.
>
> I also on my form, have a date from and date to box at the top. Both
> of these are unbound, and are to be used as criteria options. For
> example, if I enter 01/05/2004 in the From Date and 01/06/2004 in to
> To Date, I only want the list box to display the records between
> thesedates.
>
> Can anyone tell me how to do this please ?
>
> Thanks.[/color]

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seiko Ladies Watches Criteria SND867P - AA - Cheapest Watch blog288@watchesblog.cn answers 0 June 27th, 2008 05:22 PM
UI Metaphors for complex criteria selection Steve Jorgensen answers 8 November 13th, 2005 03:05 PM
Is =GetMyCriteria() a valid criteria expression in query? MLH answers 3 November 13th, 2005 12:58 PM
How to dynamically assign a query field its criteria? MLH answers 0 November 13th, 2005 12:54 PM
Criteria testing fields that may contain null values AAVF answers 6 November 12th, 2005 03:25 PM