Results 1 to 2 of 2
  1. #1
    Base is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    4

    Form-Subform Design Revisited and populating text boxes

    OK, can someone please help me out here? I feel that once this issue gets solved for me I'll be able to proceed pretty quickly. I have attached a very simple database as an example.



    A few questions:
    1. Is my design "correct"?
    2. In a subform, I want to populate a text box with a combo box value. As it stands now, there are 2 things I am doing simultaneously in testing this. I am making the combo box the Control Source for the text box. However, the "Column" part does not pop up when I build the expression and it gives me an error when I put it there. Anyway, this works to a point - the text box is populated with the first column of the combo box, but that's it. I want the 3rd column.
    3. Also, I put in an AfterUpdate event procedure Me.TextBox = Me.ComboBox.Column(2). This does not impact the results unless I change the Control Source for the text box to something else, or make it unbound. I used to get an error (related to ActiveX Controls) but now nothing happens. The combo box is fine but the text box is blank.
    Anyway, I think I'm close. Have a look at my setup and let me know what the issue(s) are.

    Thanks!

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    I have Access 2007, so I don't think I can

    load your sample.
    Attached is an example I posted for another user several days ago.
    Although the example uses listboxes, I believe the code would be essentially the same for comboboxes. I did this example to illustrate a way for forms and subforms to interact, not really for working with listboxes. Nevertheless, it may help straighten out your referencing (perhaps using the wrong bound column?).
    Open Frm1, then make a choice from one of the listboxes. The text box is populated. The left list box uses Column 1 and the right list box uses Column 2, determined by the bound column property. I hope this helps.

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

Similar Threads

  1. Replies: 9
    Last Post: 06-04-2014, 10:45 AM
  2. Replies: 3
    Last Post: 10-01-2011, 02:21 PM
  3. Replies: 17
    Last Post: 08-19-2011, 01:19 PM
  4. Replies: 3
    Last Post: 04-04-2011, 02:45 PM
  5. Replies: 15
    Last Post: 09-18-2010, 01:19 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