Results 1 to 4 of 4
  1. #1
    jamin14 is offline Novice
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Posts
    17

    user selected date query


    hi

    i have a form which allows the user to select two dates . what criteria in the query do i use to select the two dates that the user selected.

    so far i have Between [BT214_assessment_09-10]![F_OrdersForperiod]![Date1] And [BT214_assessment_09-10]![F_OrdersForperiod]![Date2]

    but this still brings up enter parameter value box which i want to aviod

    many thanks
    Last edited by jamin14; 03-31-2010 at 01:35 PM.

  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,521
    The correct syntax to refer to a form control:

    Forms Refer to Form and Subform properties and controls

    Yours is a little off, and it's unclear whether there's a subform involved.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    jamin14 is offline Novice
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Posts
    17
    Sorry all im doing is entering the dates on the form f_ordersforperiod and using that to run the query but i dnt know what criteria to use in the query to get the dates i collected

    thanks

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I understand. What I'm saying is that:

    [BT214_assessment_09-10]![F_OrdersForperiod]![Date1]

    is not valid syntax to refer to the form. Either use the Build feature in query design or check out the link for the correct syntax.
    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. User Input Query
    By ManC in forum Queries
    Replies: 2
    Last Post: 03-04-2010, 07:09 PM
  2. Replies: 2
    Last Post: 03-02-2010, 01:58 AM
  3. Replies: 7
    Last Post: 02-25-2010, 12:32 PM
  4. Replies: 2
    Last Post: 07-31-2009, 06:56 AM
  5. Help!!! user friendly forms/date entry
    By megank in forum Access
    Replies: 3
    Last Post: 03-31-2009, 09:47 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