"WHERE" usage doubt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rwalle
    New Member
    • Jan 2010
    • 47

    "WHERE" usage doubt

    I have a "MainForm" containing a "SubForm", the SubForm is based on a Query and the MainForm has unbound comboboxes and TextBoxes to built filters that I apply to Subform using buttons in MainForm, it works fine, now I'd like to do this same filtering action but using the query criteria , I have done pointing the query design gird criteria fields to the MainForm combos and Text Boxes, it also works , but I'd like to know how to do this from VBA so I can use only one "Main" query and then build different WHERE clauses dependig on what I'm looking for , I have seen some examples but it's not so clear for me , could somebody point me to some examples of how to build this kind of filters / queries ?

    Thanks for the help
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32633

    #2
    See if you can use the ideas in Example Filtering on a Form to get you going.

    Comment

    • Mihail
      Contributor
      • Apr 2011
      • 759

      #3
      Or the ideas from http://bytes.com/topic/access/answer...y-filter-query

      Comment

      Working...