Results 1 to 3 of 3
  1. #1
    jassie is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012

    parameter in access query

    I am working with an Access 2007 query where part of the selection criteria is a start and end date. I have this hard coded in the query.

    Is there a way to supply a start and end date to an access 2007 query using paramters that can be entered by the user? If this is possible can you tell me and/or point me to a url that explains how to supply parameters to an access query?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Nevada, USA
    Most common is to have a form where the user would enter the two dates, and in your query criteria would be:

    Between Forms!FormName.StartDateTextbox And Forms!FormName.EndDateTextbox

    replacing the form and textbox names with yours.
    Paul (wino moderator)
    MS Access MVP 2007-2019

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Ottawa, Ontario, Canada; West Palm Beach FL

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 13
    Last Post: 01-10-2012, 09:56 AM
  2. Replies: 10
    Last Post: 09-29-2011, 11:39 AM
  3. Replies: 3
    Last Post: 04-27-2011, 06:34 PM
  4. Parameter query
    By doss13 in forum Queries
    Replies: 1
    Last Post: 06-26-2010, 06:11 AM
  5. Parameter Query help...
    By daggy in forum Queries
    Replies: 1
    Last Post: 05-11-2010, 01:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Other Forums: Microsoft Office Forums - Senior Forums