Results 1 to 4 of 4
  1. #1
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727

    Autofill


    All, using access 2016..I have searched the forum n tried the suggestions. I have a combo box to filter and populate a subform. In the mainform area also have a few unbound fields that also need to populate based on the combo box selection. I can't get this to work...the combo box row source is a query with the other fields I want populated. I set the column count to 4 for the total columns in the query n on the form and the column width accordingly. I tried a couple of ways...in the control source of unbound text field=[ComboBox].Column(2)..theres on columncount. Or the same in the afterupdate event of the combo box.. don't populate..I've done this n the past but can't remember not working...

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    To have the textboxes unbound (and editable) use the AfterUpdate property of the combo box, making sure you reference the proper columns (the column collection is 0 based so your example would be the third column),
    Cheers,
    Vlad

  3. #3
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    I got it working but when I click the combo drop, the box is so wide...I hide all fields but the field base on combo...how can I clean this up? I don't need the unbound text editable..
    Last edited by slimjen; 06-25-2019 at 10:45 AM. Reason: More

  4. #4
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    To get the combo to show properly you adjust the individual column widths in the column width property and the list width property for the list itself. If you set the control source property of the text boxes to =cboMyCombo.Column(1) then just do a Me.Refresh in the AfterUpdate of the combo.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-14-2015, 02:29 AM
  2. Autofill
    By Jpxfit in forum Access
    Replies: 4
    Last Post: 12-29-2014, 03:57 PM
  3. Autofill?
    By LeadTechIG in forum Access
    Replies: 6
    Last Post: 12-05-2014, 09:18 AM
  4. Autofill ?
    By Daryl2106 in forum Access
    Replies: 14
    Last Post: 10-28-2011, 10:09 AM
  5. Autofill
    By evosheas in forum Access
    Replies: 4
    Last Post: 09-20-2011, 02:29 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