Results 1 to 4 of 4
  1. #1
    vector39 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2017
    Posts
    76

    How to update record with combobox selection

    Hi everyone

    Does anyone know the VBA needed to update a record from a combobox selection? I have form where users can enter new company information and I have a combobox that lists all items from one field in the main table. However whenever a user makes a selection, the record updates except for that one field. And I'm assuming it has to do with the After_Update event procedure in the combo box's property sheet. I tried things like:

    Me.Combo596.ListItem = True


    or
    Combo596.value = Combo596.Listindex(0)

    But so far, nothing has worked. Thoughts?

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Add the table field name as the control source of the combobox.

  3. #3
    vector39 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2017
    Posts
    76
    Quote Originally Posted by aytee111 View Post
    Add the table field name as the control source of the combobox.
    Thanks for the reply. I did so and I notice every time I make a selection a number appears instead of the actual value. Any idea why this is?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Here's a link to all kinds of information and examples for Comboboxes
    It seems you may have an issue with the bound field,but most likely the display columns widths. (best guess)

    You are not using lookup fields at table field level, right?

    Good luck.

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

Similar Threads

  1. Replies: 4
    Last Post: 09-13-2017, 10:35 AM
  2. Update combobox selection for new entries
    By Pegasus in forum Access
    Replies: 1
    Last Post: 03-23-2015, 10:15 AM
  3. Replies: 1
    Last Post: 11-03-2011, 11:56 PM
  4. Replies: 6
    Last Post: 07-28-2011, 04:07 AM
  5. Replies: 0
    Last Post: 04-17-2008, 09:24 AM

Tags for this Thread

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