+ Reply to Thread
Results 1 to 7 of 7

Form textbox with multiple criteria search

  1. #1
    Forum Contributor
    Join Date
    04-18-2006
    Posts
    135

    Form textbox with multiple criteria search

    Hi,

    I am trying to create a form where the user selects from 3 combo boxes clicks a button then the text boxes in the form populate.
    However I am unable to work out how to do a search for the 3 criteria then return the cell to the text box. (I am searching in columns A to C).

    Any help would be appreciated.

    BTW I suck at VBA still learning so treat me like a noob

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Form textbox with multiple criteria search

    Let's see your workbook and the form you've created. In your sample sheet perhaps some clear examples of what you might select in your comboboxes and what the possible return should be when your search button is clicked.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    04-18-2006
    Posts
    135

    Re: Form textbox with multiple criteria search

    Its still very much a work in progress so I will explain as best I can.

    I am planning on having 3 tabs with data titled Actual, Budgeted and Modified these worksheets relate to combobox4 so by selecting any of the three options the used defines what worksheet to look start the search in.

    The next combobox2 relates to a sales channel and the user can select from Total, Pharmacy, Grocery, Export and Other this links back to column B.

    The third combobox3 relates to a brands 1-9 found in column C.

    I will also need to define within the search the measure being used (this is not selectable by the user) to complete the search.

    So for example for textbox1 (this text box relates to the measure Gross Sales on the user form) to retrieve a value the user would select Actual, Pharmacy, and Brand 1. The returned value would be 141,798 (cell D88).

    Hope this helps
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-18-2006
    Posts
    135

    Re: Form textbox with multiple criteria search

    Does my explanation make sense?

  5. #5
    Forum Contributor
    Join Date
    04-18-2006
    Posts
    135

    Re: Form textbox with multiple criteria search

    Is this not possible?

  6. #6
    Forum Contributor
    Join Date
    04-18-2006
    Posts
    135

    Re: Form textbox with multiple criteria search

    Hello...Little Help...Anyone

  7. #7
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: Form textbox with multiple criteria search

    Yes its possible , but the data sheet attached does not match with what u specified in the query

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1