Results 1 to 5 of 5
  1. #1
    Haleakala17 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    36

    Unhappy Creating Multiple Combo Boxes in Form to Select and Update Information in Table

    All,



    I am requesting if someone could assist me in making my multiple combo boxes work in form name Mainfrm. The combo box name function1 is working fine, however the other combox activity1 is not working at all. Please view PDF file to read more of my request. I tried my best to make my instructions clear and I had got some print screen images of my form interface and the where my data is stored in. In the compress folder is the PDF instructions and the Access database mdb version.

    Thank you for your time and I will be waiting for your reply.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Change the RowSource for Activity1 to:
    SELECT Activity FROM Funct_Act WHERE Function=[function1] ORDER BY Activity;

    Then need code in some event to requery the combobox. Try the GotFocus event of Activity1. Do you want to use Embedded Macro or Event Procedure? If you need a better understanding of programming, start with review of http://office.microsoft.com/en-us/ac...010341717.aspx
    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.

  3. #3
    Haleakala17 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    36
    June 7,

    Thanks for the the advice, it worked awesome!! FYI - Instead of using the GotFocus event, I used the Me.refresh in the Event Procedure in the After update section.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    The only problem with AfterUpdate is the combobox won't requery/refresh if you navigate to another existing record. That is why I suggested the GotFocus event of Activity1.
    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
    Haleakala17 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    36
    June7,

    I tried researching this morning for a macro or VB sript to enter in the GotFocus event that will requery/refresh when I go to the next record, but I was unsuccessful. Do you have any suggestions or examples of a VB Script or Macro that I can enter in the GotFocus area?

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

Similar Threads

  1. Combo Box to Update Tabbed Information ona Form
    By JessicaNicole in forum Access
    Replies: 3
    Last Post: 08-30-2012, 01:56 PM
  2. Multiple Multi-select boxes on one form
    By bujaman in forum Forms
    Replies: 8
    Last Post: 01-20-2012, 01:48 PM
  3. Update Tables from Combo Boxes in a Form
    By RedWolf3x in forum Access
    Replies: 3
    Last Post: 11-03-2011, 08:07 AM
  4. Replies: 1
    Last Post: 08-30-2011, 07:35 AM
  5. Creating a Form with 2 combo boxes and a text box
    By smorris4804 in forum Access
    Replies: 1
    Last Post: 06-17-2011, 02:06 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