Results 1 to 3 of 3
  1. #1
    HS_1 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2016
    Posts
    109

    Filter form, vba


    HTML Code:
    I am fighting this for days and it is time to ask for help. What I am trying to do is to filter the form by plant, area and module. The filter I have now works but it has one disadvantage, it doesn’t narrow down the search criteria. For example, if I filter plant by “1000” and move to “Area” filter I would like to see only the areas 10 & 11 and if I choose 10, then only modules A & B should be available for filtering. How I can rewrite the vba code to achieve this?
    The other filter I have problem with is the cboPH filter which reads query “qryFilterCboPH”.  With this filter, only the PHs which are not locked and filtered by Plant and Area should be available for input.
    If either, Area or Plant filter is left empty or both of them then I would like to see all the PH’s in drop down list which are not locked. Right now I am getting nothing when this happens.
    Please see attached dbase sample
    Attached Files Attached Files

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Have a look at the updated file and let us know if that is what you're after.

    Cheers,
    Vlad
    Attached Files Attached Files

  3. #3
    HS_1 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2016
    Posts
    109
    Vlad
    Thank you, this is exactly what I need.

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

Similar Threads

  1. Replies: 9
    Last Post: 02-24-2015, 11:19 AM
  2. Filter By Form and Apply Filter Buttons
    By JustLearning in forum Forms
    Replies: 13
    Last Post: 02-18-2015, 01:01 PM
  3. Replies: 5
    Last Post: 02-07-2013, 12:21 PM
  4. Replies: 1
    Last Post: 08-16-2012, 01:51 PM
  5. Replies: 28
    Last Post: 03-08-2012, 06:47 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