Results 1 to 2 of 2
  1. #1
    ny1994rangers is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    1

    Refilter form and stay on same record

    I currently have a query that when I doubleclick an item in a listbox, it opens that item in one of two forms. That query is:

    If Me.List93.Column(1) = "Task" Then
    DoCmd.OpenForm "Add/Update Tasks", , , "[ID]=" & Me.List93
    Else: DoCmd.OpenForm "Add/Update Questions", , , "[ID]=" & Me.List93
    End If
    End Sub

    Column (1) will either say "Task" or "Question". When the Add/Update Tasks form opens with the appropriate record up, it automatically filters the form to only that record so I can't scroll through the other tasks. So if i doubleclick the line for ID #1 in the listbox, and it's a task, it'll open up ID# 1 in the Add/Update Tasks form. Is there something that I can add that when the form opens up, it keeps me on ID #1 (or whichever I selected in the listbox) but refilters the list to only show me all Tasks? I'd like for when the Add/Update Questions form to load, it will keep me on the correct ID, but refilter to only show me all Questions as well. "Task" and "Question" are located within my table "Records" in the column called "Record Type".



    Thanks for any help.

  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
    Does this do what you want?

    http://www.baldyweb.com/Bookmark.htm
    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. form won't stay in restored down size
    By markjkubicki in forum Forms
    Replies: 4
    Last Post: 08-15-2011, 07:46 AM
  2. Access won't stay maximised
    By eckles in forum Access
    Replies: 7
    Last Post: 06-21-2011, 01:55 AM
  3. Report data to stay on one page
    By appleb007 in forum Reports
    Replies: 3
    Last Post: 04-27-2011, 09:27 AM
  4. Length of Stay
    By lhysell in forum Queries
    Replies: 1
    Last Post: 02-02-2011, 10:45 AM
  5. Replies: 3
    Last Post: 09-16-2010, 09:50 AM

Tags for this Thread

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