Results 1 to 2 of 2
  1. #1
    majeed00 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012

    Filter on a Form - How to show results of a filter in a subform


    I am new to MS Access 2007. Trying to build a very simple database. I have a form displaying student details and I want to search a specific student details. I managed to add a filter button on header which works fine but after finding a record I can not see other records on my form.

    How can I show my filter results on a sub-form without affecting main form???



  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    The Great Land
    Subform unnecessary complication.

    Instead of filtering, move to the desired record. Involves use of RecordsetClone and bookmarks. Example:

    'find record
    With Me.RecordsetClone
    .FindFirst "StudentID=" & Me.cbxStudent
    Me.Bookmark = .Bookmark
    End With
    How to attach file: To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 28
    Last Post: 03-08-2012, 06:47 PM
  2. Open Form and filter subform
    By gg80 in forum Programming
    Replies: 3
    Last Post: 09-04-2011, 05:05 PM
  3. Subform Filter based on Main Form Information
    By james.carpenter2 in forum Forms
    Replies: 0
    Last Post: 02-16-2011, 09:55 PM
  4. Replies: 1
    Last Post: 11-16-2010, 08:42 AM
  5. Replies: 7
    Last Post: 05-24-2009, 10:24 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