Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2012
    Posts
    2

    Populate Form by Combo Box Selection, Editable?

    Hi All!



    I have created a database form that has a combo box which, when selected, shows invoice number & corresponding purchase order number for each record.

    When an invoice number & purchase order is selected, the record matching this criteria will populate the textboxes on the form.

    I have tried to set the control source for the textboxes to (for example) =[comboBox1].[column](0)
    This works fine, but I am unable to edit the record... which is what I need to do!

    I then tried to write an After_Update() like this Me.InvNO.Value = Me.comboBox1.Column(0)
    I still can't edit the record on the form when it is populated.

    Can anyone tell me how I can...
    1. have a selection from a combo box that ...
    2. populates the form...
    3. and lets me edit the record on that same form after it is populated
    ??

    THANK YOU!

  2. #2
    Join Date
    Mar 2012
    Posts
    2
    Well.
    It seems that by adding the code to After_Update() of the comboBox...
    and then restarting Acces... the code finally worked, and I am able to retrieve & edit the records.

    "The only thing consistent about computers... is that they are inconsistent!"

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

Similar Threads

  1. Replies: 9
    Last Post: 07-20-2015, 10:55 AM
  2. Replies: 33
    Last Post: 01-13-2012, 07:44 AM
  3. Populate Form And Make Editable
    By Rick5150 in forum Forms
    Replies: 1
    Last Post: 10-04-2011, 09:04 AM
  4. Replies: 4
    Last Post: 01-24-2011, 07:11 PM
  5. Replies: 0
    Last Post: 12-02-2010, 11:59 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