+ Reply to Thread
Results 1 to 4 of 4

Thread: Query to bring records between specified dates

  1. #1
    Registered User
    Join Date
    12-02-2009
    Location
    Birmingham, UK
    MS-Off Ver
    2000 & 2007
    Posts
    82

    Query to bring records between specified dates

    Hello Guys,

    I was setting up a database to run the inventory. I am trying to make a query that will bring me all the transactions made between specific dates.

    Query I use looks this way: most fields coming from table:Transactions

    TransactionID
    PartNumber
    TransactionType
    Quantity
    UOM - Related to another table [Part]
    Date
    User

    I don't know how to make the query search for the dates I would be inputing. Is there anyone who could help with some suggestion. I work here on Access 2000.

    Thanks for reading it and giving it a go.

    Simon
    Last edited by Ramzes; 02-02-2011 at 08:22 AM. Reason: changing prefix to solved
    Life is brutal and full of ambushes and sometimes is kicking as...

  2. #2
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,161

    Re: Query to bring records between specified dates

    In the criteria section of the Date field create parameters for a start date and an end date.

    Look at this for web site for the syntax

    http://www.techonthenet.com/access/q...parameter1.php

    Note: The term "date" is a reserved word in Access and should not be used as a field name. It may cause you problems in the future. Change it to something else, ie. TranDate

    Here is a link to Reserved Words

    http://support.microsoft.com/kb/209187

    Alan

  3. #3
    Registered User
    Join Date
    12-02-2009
    Location
    Birmingham, UK
    MS-Off Ver
    2000 & 2007
    Posts
    82

    Re: Query to bring records between specified dates

    Thank you for your help.

    The first link has redirected me to uncover a code:
    >=[Start Date] And <=[End Date]
    which works beautifully for me.

    Thanks again
    Simon
    Life is brutal and full of ambushes and sometimes is kicking as...

  4. #4
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,161

    Re: Query to bring records between specified dates

    As an alternative, you could also use Between [StartDate] and [EndDate]

    Alan

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0