Results 1 to 9 of 9
  1. #1
    Sandi at the Region is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    4

    Bringing Up Specific Data in Combo Box (Macro, Maybe?)

    The forms on my database have fields for (amongst other things) what the problem is, the section to which it’s assigned, and the person within that section. All of the "standard" issue is completed by combo boxes.

    Obviously, the department is divided into sections and each section contain multiple employees. When a task is assigned to a section, I want to click on that section in the "Section" combo box, and have another combo box bring up ONLY the people in that section.

    So, to illustrate in simple terms:
    If I were organizing my wardrobe, I’d have a combo box with:
    Shoes
    Skirts
    Tops

    If I click on Shoes, I’d want a combo box to bring up:
    Heels
    Platforms
    Slingbacks

    If I click on Tops, I’d want a combo box to bring up:
    Blouses
    Sweaters


    T-Shirts

    Simple, eh? Should be. I’ve tried a macro, but although I can use it to open a table, I can't figure out how to open a combo box on a form. Is there a way to do this? Many thanks!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Sounds like:

    Baldy-Cascading Combos

    if it's a form in single view.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Sandi at the Region is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    4
    Many thanks. I still don't understand. I've even tried copying the text from your code into my database, changing it as appropriate, but to no avail. I don't know. I'm giving up on this! But thanks anyway.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Here's another tutorial on cascading comboboxes http://datapigtechnologies.com/flash...combobox2.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Quote Originally Posted by Sandi at the Region View Post
    Many thanks. I still don't understand. I've even tried copying the text from your code into my database, changing it as appropriate, but to no avail. I don't know. I'm giving up on this! But thanks anyway.
    If you want to post your db here we can try to fix it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    Sandi at the Region is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    4
    My goodness! It worked! I actually did it! After 3 solid days of sweating over this thing, I actually did it. Thank you so much and consider yourself hugged.

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Glad you got it sorted, and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    Sandi at the Region is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    4
    Well, I thought everything was going well, until I went back to change info on one of the first records in the database. It changed the information on ALL the subsequent records--and there are 3,000 of them I now have to change! (fortunately I kept a copy of the info, but as far as I know, I still have to go through and change every single record.) This is obviously going to be an ongoing problem. How do I make it so that changes made by using the combo boxes ONLY affect that one record, and not all the rest? (I've done the Requery line) Many thanks.

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You have the combobox bound to wrong field. The lookup table should not be included in the form RecordSource. Post the form's RecordSource sql statement.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-24-2015, 06:54 PM
  2. Replies: 1
    Last Post: 03-31-2014, 11:10 AM
  3. Replies: 4
    Last Post: 05-17-2013, 12:55 PM
  4. Writing macro to go to specific record
    By johnjmcnaughton in forum Programming
    Replies: 18
    Last Post: 04-15-2013, 10:23 AM
  5. Bringing forward a data in a form
    By cwwaicw311 in forum Forms
    Replies: 9
    Last Post: 02-24-2010, 07:58 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