Results 1 to 6 of 6
  1. #1
    Arsalan is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    11

    Filter form based on combo (was Is this Possible)

    I want to know that is this possibel when i select Month from Comobox(as mention in pic) then only selected month data will show in detail fields?


    Please Help!
    Click image for larger version. 

Name:	Sample.JPG 
Views:	11 
Size:	118.2 KB 
ID:	10757

  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
    Sure; you can change the record source of the form or set its Filter property.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Arsalan is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    11
    thanks for giving me response. One more thing i want to clear that if i want to filter january data then what i do?

  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
    Presuming the combo contains the month number:

    Me.Filter = "FieldName = " & Me.ComboName
    Me.FilterOn = True
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Arsalan is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    11
    Thanks alot sir.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem.
    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. Replies: 1
    Last Post: 10-30-2012, 10:29 AM
  2. Replies: 5
    Last Post: 03-12-2012, 02:58 AM
  3. Filter based on two combo boxes.
    By jakeao in forum Programming
    Replies: 1
    Last Post: 05-22-2011, 10:56 AM
  4. Replies: 5
    Last Post: 01-02-2011, 10:09 AM
  5. filter form based on combo box
    By lloyddobler in forum Forms
    Replies: 8
    Last Post: 09-10-2009, 07:33 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