PC Review


Reply
Thread Tools Rate Thread

Between dates

 
 
jamesb
Guest
Posts: n/a
 
      13th Nov 2008
In this database I am working on, I would like to select a set of dates for
the query to search on based on, unbound text boxes I have placed in a form.
The defaults are set for our fiscal year, but I want people to be able to
type in their own set of dates if they don't want the whole year. Question
is...what is the expression that gets typed into the query? I have Start Date
and End date for the 2 field names. I tried a couple things and can't get
it...and am not sure what I am missing or if it can't be done at all.

Thanks
JB
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      13th Nov 2008
See:
Limiting a Report to a Date Range
at:
http://allenbrowne.com/casu-08.html

The first method explains how to set up the parameters in the query, and
declare them so that Access understands them as dates.

--
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.

"jamesb" <(E-Mail Removed)> wrote in message
news:5E183894-F285-4717-8EA6-(E-Mail Removed)...
> In this database I am working on, I would like to select a set of dates
> for
> the query to search on based on, unbound text boxes I have placed in a
> form.
> The defaults are set for our fiscal year, but I want people to be able to
> type in their own set of dates if they don't want the whole year. Question
> is...what is the expression that gets typed into the query? I have Start
> Date
> and End date for the 2 field names. I tried a couple things and can't get
> it...and am not sure what I am missing or if it can't be done at all.
>
> Thanks
> JB


 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      13th Nov 2008
I should also have explained to use parameter names like this:
Between [Forms].[Form1].[StartDate] And [Forms].[Form1].[EndDate]

Also, set the Format property of these unbound text boxes to General Date or
similar (again, to ensure Access interprets them correctly, and block
invalid dates.)

--
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.

"jamesb" <(E-Mail Removed)> wrote in message
news:5E183894-F285-4717-8EA6-(E-Mail Removed)...
> In this database I am working on, I would like to select a set of dates
> for
> the query to search on based on, unbound text boxes I have placed in a
> form.
> The defaults are set for our fiscal year, but I want people to be able to
> type in their own set of dates if they don't want the whole year. Question
> is...what is the expression that gets typed into the query? I have Start
> Date
> and End date for the 2 field names. I tried a couple things and can't get
> it...and am not sure what I am missing or if it can't be done at all.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting dates to current dates to find out the evaluation date Donica24 Microsoft Access Queries 1 26th Jan 2010 04:38 PM
Linking computer dates (time) to spreadsheet dates that have formu bigisle Microsoft Excel Worksheet Functions 2 3rd Jan 2010 08:05 PM
Copy/Paste 2009 dates into Tbale and they Show as 2008 Dates ryguy7272 Microsoft Access 1 13th Nov 2008 02:13 AM
Toggle a range of Julian dates to Gregorian Dates and Back =?Utf-8?B?UFNLZWxsaWdhbg==?= Microsoft Excel Programming 4 8th May 2007 05:51 AM
Showing data between two dates in multiple subreports by enter two dates Martijn Microsoft Access Reports 0 26th Sep 2003 10:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:21 AM.