Results 1 to 5 of 5
  1. #1
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476

    Needing some help with Parameters

    I have a query which contains a Date/Time Field. I want to have the query open up asking me for a ‘StartDate’ & an ‘EndDate.’ The Date/Time Field is entitled, “TDate.” So I simply open the query in Design View, open up the Query Parameter window; on the first line I put “StartDate” & on the second line I put in “EndDate.” I set both Parameters Data Type to Date/Time, ran the query, I when I type in two dates (Start & End Date) in return I get ALL of the dates/Records can anyone please tell me what I might be doing wrong.


    Thanks in advance

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Doesn't sound like you added them to the criteria line in design view:

    Between StartDate And EndDate
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Never mind. I first Goggle searching for "Setting Parameters in Access" but I then used Access help & found how to be set up the 2-Parameters I needed. In my opinion, I find "Access Help" to be useful sometimes & sometimes not.

  4. #4
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Right PD, I did that now & it worked. I don't understand when the Query is in Design View there's a Query Parameters window where I thought you use when you want to create Parameters, but it didn't work. This "Query Parameters Windows" might not be on older versions of Access. Thanks for responding, pd ... dj

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    It is in previous versions, but it is just where you can explicitly declare them. You still have to put them in the criteria row so Access knows which field(s) to apply them to, and how ( =,>,<, etc).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Beginner needing help!
    By AussieAsh in forum Access
    Replies: 2
    Last Post: 01-23-2013, 11:20 AM
  2. Needing Sub Query Help
    By djclntn in forum Queries
    Replies: 10
    Last Post: 11-15-2012, 01:49 PM
  3. Needing help please......
    By Kristena in forum Access
    Replies: 4
    Last Post: 01-20-2012, 07:35 AM
  4. Needing help with the below mentioned
    By FCollazo in forum Access
    Replies: 3
    Last Post: 10-28-2011, 04:18 PM
  5. Hey, Needing some help
    By natbatgirl in forum Access
    Replies: 1
    Last Post: 08-18-2011, 11:25 PM

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