Re: Query criteria doesnt use year input

From: Van T. Dinh (VanThien.Dinh_at_discussions.microsoft.com)
Date: 05/29/04


Date: Sat, 29 May 2004 12:57:31 +1000

Perhaps you should post the full SQL String of the Query since the
parameters look OK.

--
HTH
Van T. Dinh
MVP (Access)
"Donna Brooks" <anonymous@discussions.microsoft.com> wrote in message
news:145bf01c444ea$cae68ec0$a601280a@phx.gbl...
> I have created a query in my HR database to pull all
> employees due for their 90 day evaluation. Fields are as
> follows: EmpNo
>          LastName
>          FirstName
>          HireDate
>          90Days: DateAdd("d",90,[HireDate])
> I can run the query, calculates great. But, I need to
> pull all employees, for examples, that the 90 Day is due
> between 06/01/2004 and 06/30/2004, so in the criteria for
> this expression, I use:
>        Between [Enter the first day of the month] and
> [Enter the last day of the month]
> It runs the query, but it pulls all employees with 90 Day
> due in June regardless of the year. I need it to only
> pull the ones with the year I specify. For example, I get
> results like this, if my criteria were between 06/01/2004
> and 06/30/2004.
>
> 525    John Doe   03/05/04    06/05/04
> 480    Jane Doe   03/08/01    06/08/01
> 592    Joe Blo    03/11/02    06/11/02
>
> The only one that I need it to pull would be the first
> one, the one in 2004.
>
> Please help.
> Thanks,
> Donna Brooks
>
>


Relevant Pages

  • RE: Control Source Expression is too Complex
    ... I was able to create the select query but I'm not quite sure how to pull the ... RequestorName into the control. ... I have pasted the SQL of the query below. ... No choose or typing in employees all the time is necessary. ...
    (microsoft.public.access.forms)
  • Re: error pulling data from query using a command button on a form
    ... You can't refer to fields in queries that way. ... What is DET1PERSONNEL1 Query? ... > 'I am attempting to pull data from a column in a query. ... > Private Sub UpDateSingleRecord_Click ...
    (microsoft.public.access.forms)
  • RE: Link Pulldown to Query
    ... I want to use a pull down menu to select data that will then be used to ... >> results of the query. ... >> reading the selection data from a Access table. ...
    (microsoft.public.access.gettingstarted)
  • Re: Query records with single Dates Automatically
    ... Here is the code for the Out of Town Report: ... both queries pull from the same table. ... -- Two Tables Attendees and Visits ... Please copy and post the SQL of your query. ...
    (microsoft.public.access.queries)
  • Re: COMBO BOXES
    ... not get it to pull up any data that is already been input. ... >>query box asking for some type of iput. ... Create a Form named frmCrit. ... Create a Query on the table that you want to display. ...
    (microsoft.public.access.forms)