Results 1 to 6 of 6
  1. #1
    Brightspark98 is offline Advanced Beginner
    Windows 7 32bit Access 2013 64bit
    Join Date
    Dec 2016
    Posts
    57

    ComboBox Value

    Hi,

    I have a form with several ComboBox controls.

    All display the contents but when a selection is made on one of the ComboBox controls only the top value is displayed no matter which entry is selected.



    Any help is greatly appreciated.

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    sounds like you combobox rowsource is say

    SELECT FirstName, LastName from myTable

    and myTable contains

    FirstName..LastName
    George......Harrison
    Harry........Smith
    Paul..........Jones
    Paul..........Smith

    So when you select Paul Smith, Jones is displayed

    Is this correct? If so, you need to include the unique autoID for the record in your rowsource and make it the bound column

    If not, please supply

    1.the sql to the rowsource,
    2. some example data the sql produces which will illustrate the problem
    3. the values for the bound, columnwidths and columncount properties for the combo

  3. #3
    Brightspark98 is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Dec 2016
    Posts
    57
    Hi there,

    I don't have access to my home pc at the moment so can't supply any further data. But
    My table/ combobox contains for example..

    Apples
    Bananas
    Oranges
    Pears
    Melons

    If Pears are selected Apples are displayed.
    If Oranges are selected Apples are displayed. and so on.

    Thanks

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    too little info to provide a solution, please respond when you can supply the requested information

  5. #5
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    There is probably a requery of the combo that is taking place in an event.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    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
    Quote Originally Posted by Micron View Post
    There is probably a requery of the combo that is taking place in an event.
    That would be my first guess, as well, given the presented info!

    Second guess would be a corrupted Combobox. Although we usually think of Forms, and even entire Databases, when we speak of corruption, Controls, such as Comboboxes, can and do become corrupted, and seem particularly susceptible to this during app development.

    The test/cure for this is short and simple...delete and then re-create the Control.

    Linq ;0)>


    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: 1
    Last Post: 05-13-2015, 01:14 PM
  2. Replies: 1
    Last Post: 01-16-2015, 09:28 AM
  3. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 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