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

    Need some information on how to link a Textbox to a Combo Box

    Form:
    Parts PDCA
    Combo Box is on Parts PDCA form pulling PartNo from tblBomPartMaster

    Name: cboBomPart
    Control Source: PartNo (places the data in tblPartsPDCA.PartNo)



    Text Box is on Parts PDCA form
    Want it to pull the part description when thecboBomPart the PartNo is chosen.

    Name: tbbomdesc
    Control Source: Part Desc

    In the tblBomPartMaster:
    Column (0) is the ID
    Column (1) is the PartNo
    Column (2) is the PartDesc

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529

  3. #3
    DuWayne is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    8
    I still cannot get the testbox tbBomDesc to populate when I chose the cboBomPart.

    Here is my setup:

    Name: cboPartNo
    Control Source: PartNo (Saves the data in tblPartsPDCA.PartNo)

    Name: tbBomPart
    Control Source: PartDesc (places the data in tblPartsPDCA.PartDesc)
    AfterUpdate: [Event Procedure]

    Private Sub tbBomDesc_AfterUpdate(Cancel As Integer)
    Me.tbBomDesc = Me.cboBomPart.Column(2)
    End Sub

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    The assignment line

    Me.tbBomDesc = Me.cboBomPart.Column(2)

    needs to be in the

    cboBomPart_AfterUpdate

    event, not where you currently have it, in the

    tbBomDesc_AfterUpdate

    event! You cannot assign a Value to a given Control in the AfterUpdate event of that Control.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Replies: 3
    Last Post: 11-29-2012, 11:00 AM
  2. Form Combo Box Saving Wrong Information
    By Steve62 in forum Reports
    Replies: 5
    Last Post: 11-12-2012, 02:29 PM
  3. Combo Box to Update Tabbed Information ona Form
    By JessicaNicole in forum Access
    Replies: 3
    Last Post: 08-30-2012, 01:56 PM
  4. Replies: 11
    Last Post: 03-23-2012, 07:30 AM
  5. picture image link on a table textbox
    By john_gringo in forum Access
    Replies: 5
    Last Post: 11-04-2011, 02:21 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