Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Posts
    16

    Unanswered: unbound combo box

    I have multiple unbound combo boxes that use the same data source. Once I select from the combo box and then goto the next record the item does not clear

    any thoughts???

  2. #2
    Join Date
    Jun 2005
    Location
    Richmond, Virginia USA
    Posts
    2,763
    Provided Answers: 19
    That's the nature of any Unbound Control. It's value in one record is it's value in all records and will persist when moving to another record. To reset it to 'no selection' when moving from record to record:

    Code:
    Private Sub Form_Current()
      cboComboBoxName = Null
    End Sub
    Hope this helps!

    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    Join Date
    Mar 2009
    Posts
    16
    Quote Originally Posted by Missinglinq
    That's the nature of any Unbound Control. It's value in one record is it's value in all records and will persist when moving to another record. To reset it to 'no selection' when moving from record to record:

    Code:
    Private Sub Form_Current()
      cboComboBoxName = Null
    End Sub
    Thanks,

    That is not going to help because I need the info to stay. When I bound the many combo boxes, then they all change when I select a Name. How do I prevent the same Name coming up on all the combo boxes. i am using the same recordset a query

  4. #4
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Unbound means that the control on the form is not tied to any field on any table. So if you want the data to "stay" then you either have to use bound objects (bound to fields) or you have to code the saving of the data on the form into your table structure, then do exactly as Missingling says.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •