+ Reply to Thread
Results 1 to 4 of 4

Record lookup with 2 Combo boxes

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    15

    Record lookup with 2 Combo boxes

    Okay I am having trouble with this. I have rep contact form I am trying to create that I want to have a combo box to select the rep which will filter the second combo box to only the contacts for the rep selected in the first combo box.

    I wrote come VBA, but can't get the "Contact" field to only show the records related to the "Reps" Field. The "Contact" field goes to the first contact in the field, but still shows the remaining contacts not related to the rep selected. can get them to show the values, but I can't get them to change the data in the other fields listed on the for. have attached a dummy file for reference. The code is below:

    Please Login or Register  to view this content.


    Any help would be appreciated.

    Thanks.
    Attached Files Attached Files
    Last edited by crsport3; 04-17-2014 at 12:12 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,601

    Re: Record lookup with 2 Combo boxes

    thanks for the code tags.
    Last edited by protonLeah; 04-17-2014 at 12:05 AM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Record lookup with 2 Combo boxes

    Sorry about that. I edited to post to fit the rules.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Record lookup with 2 Combo boxes

    Look at this link for a tutorial on cascading combo boxes

    http://www.fontstuff.com/access/acctut10.htm
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Help with code for userform text boxes, combo boxes and excel
    By innerise in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2014, 09:07 AM
  2. populating list boxes and combo boxes in a user form.
    By ahceinaej in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2014, 11:54 AM
  3. LookUp Using Combo Boxes
    By kasperblue in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2013, 02:34 PM
  4. [SOLVED] [SOLVED] combo boxes and lookup
    By Addz in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 07-30-2005, 07:05 PM
  5. Replies: 9
    Last Post: 03-08-2005, 05:06 PM

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