Results 1 to 2 of 2
  1. #1
    RemonKoybito is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2011
    Posts
    10

    Question Cascading combo box updating text box?

    Hello all. So I'm redoing my non-profit's inventory database and I managed to figure out how to make cascading combo boxes to pick the category (Adult, Infant, etc.) and then the items for those categories. Now, I need a text box to automatically put in the item value, depending on the choice picked in the second combo box.



    I have all the items listed on one table, listed with Category, Item, and Product Value. I need this on the form I'm making that's linked to the Inventory In table.

    Thanks for your help!

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    put
    me.txtBoxName = DLookup("fieldValue", "tblName", "itemID = " & me.comboBoxHoldingItemID)
    in the afterUpdate event of the combobox that displays the item.

    txtBoxName is the name of the textbox you want the value displayed in.
    fieldValue is the name of the field that holds the value of the item you want.
    tblName is the name of the table that holds this data.
    itemID is the ID (likely the primary key) of the item in question. This should be whatever data the combobox is holding. I'm assuming the combobox has 2 columns, ID and Name with the ID hidden. If not, just use whatever field is help by that combobox.

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

Similar Threads

  1. Cascading combo boxes
    By Jackie in forum Access
    Replies: 5
    Last Post: 07-26-2013, 09:07 AM
  2. Cascading Combo Box Help
    By euphoricdrop in forum Forms
    Replies: 3
    Last Post: 04-12-2011, 05:35 PM
  3. cascading combo
    By rexb in forum Forms
    Replies: 9
    Last Post: 10-26-2009, 04:10 PM
  4. Cascading Combo Boxes
    By desireemm1 in forum Programming
    Replies: 1
    Last Post: 10-05-2009, 06:00 AM
  5. Cascading Combo Box
    By nywi6100 in forum Forms
    Replies: 0
    Last Post: 10-23-2006, 01:45 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