Results 1 to 4 of 4
  1. #1
    zooyo is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    12

    Angry Query for current record

    Alright so this is driving me nuts and I can not find a straight answer on this.



    I have a form that has a button that links to my query. Within this query I need to it to default to the current record (ID) that is displayed in my form. Please help I am about ready to smash my computer.

    And yes I am aware this is probably something super simple, I am just a frustrated newbie.

  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,652
    If you mean restrict the query to the current record, add a criteria on the ID field that points to the form. You can use the build function or:

    Forms Refer to Form and Subform properties and controls
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    zooyo is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    12
    I have tried to enter in a criteria where it points to the ID on the form but it doesn't. It just brings up all the records. Perhaps I am putting it in wrong? This is what my criteria says - "[Forms]![Form Name]![ID]".

  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,652
    If the quotes are part of your criteria, they shouldn't be. Also, did you put in your actual form and textbox names?
    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. Run query for current record only
    By lmh24 in forum Queries
    Replies: 3
    Last Post: 06-01-2012, 03:23 PM
  2. Current Record Value in query
    By A S MANN in forum Queries
    Replies: 3
    Last Post: 12-21-2011, 06:21 AM
  3. Run Update Query on Current Record in Form
    By c3pse in forum Queries
    Replies: 3
    Last Post: 08-14-2010, 05:40 AM
  4. Query based on current record in form
    By bhsvendbo in forum Queries
    Replies: 1
    Last Post: 06-01-2010, 11:20 AM
  5. How to output only current record in query
    By mslieder in forum Access
    Replies: 0
    Last Post: 01-20-2006, 05:48 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