CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2001
    Posts
    17

    I have multiple combo boxes... need help

    Ok, I have 5 combo boxes on a form, each with no less than 10 choices.... What I want to do is look in a certain table and ONLY pick out the record(s) that have all five of the choices in common. So as you can see, I am really trying to get a small number of records here on a form. I also have a "Proceed" command button where once the user is done picking their choices, he/she will click on "proceed". I want to run an event procedure on the "on click" event, but I don't know where to go with this.. any help is appreciated...


  2. #2
    Join Date
    Jul 2000
    Location
    Hawaii
    Posts
    281

    Re: I have multiple combo boxes... need help

    I can think of a nested SQL statement - however I haven't seen one 5 deep before

    or perhaps just AND your conditions in the WHERE part of the SQL

    example of nesting at:
    http://pages.about.com/vbmakai/dao4.htm


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured