Results 1 to 3 of 3
  1. #1
    DuWayne is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    8

    How do I use a combo box to populate a textbox?

    This is what I have. What I need is to populate in my
    form PartNo with the PartNo from tblfbompart and
    have it populate PartDesc from tblbompart and have it
    place the information into tblMadeToStockParts PartNo,
    & PartDesc. Alsochoose Model from tblModel using a
    combo box and placing ModelID in tblMadeToStockParts.

    Thanks

    tblMadeToStockParts


    MTSID
    PartNo
    PartDesc
    Model
    Memo
    Attachment

    tblfbompart
    fbompartID
    PartNo
    PartDesc
    Category

    frmMadeToStockParts
    MTSID
    PartNo
    PartDesc
    Model
    Memo
    Attachment
    fbompartID
    ModelID

    tblModel
    ModelID
    Model

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,615
    Should not save PartNo and PartDesc into tblMadeToStockParts, only fbompartID.

    Bind Model combobox to the Model field in tblMadeToStockParts and the ModelID selected in combobox will save.
    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
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    In addition to June's comment, look at this for how to get the descriptive information into unbound text boxes on your form for display purposes only.

    http://www.baldyweb.com/Autofill.htm

    Alan

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

Similar Threads

  1. Replies: 33
    Last Post: 01-13-2012, 07:44 AM
  2. Unable to populate textbox based on listbox
    By marcustofeles in forum Forms
    Replies: 21
    Last Post: 10-24-2011, 07:18 AM
  3. Replies: 4
    Last Post: 01-24-2011, 07:11 PM
  4. Auto-Populate Combo box
    By vincenoir in forum Forms
    Replies: 3
    Last Post: 10-14-2009, 07:06 AM
  5. Populate Combo Box
    By wes28 in forum Programming
    Replies: 1
    Last Post: 03-04-2009, 06:45 AM

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