Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2015
    Posts
    9

    Unanswered: Populating a single bound textbox with multiple check boxes on a separate form

    Hello,

    I have one form that allows user to enter data into a table. One of the fields is "State". I would like the user to be able to open a separate form that contains check boxes, one for each state and a "select all" option. Whatever states are checked off on that form would automatically populate into the "State" field on my original form. Ultimately, the text in the text box can be listed as, for example, "MA TX CA NY" and so on.

    What is the best way to go about doing this?

    I have a separate table that contains two fields, the name of the state and the state abbreviation. Is there a way to automatically populate the "State Selection" form with check boxes using these records? Or would I have to create 50 check boxes manually?

    I'm using Access 07. My knowledge of VBA is VERY limited, so I'm hoping there's a non-code way to do this.

    Any assistance is appreciated. Many thanks.

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,418
    Provided Answers: 7
    This Should point you doe the right track

    If Me.MyListBox.ItemsSelected.Count <> 0 Then

    For Each oitem In Me.MyListBox.ItemsSelected
    bla = bla & oitem & " "
    Next

    End If


    make shour you have the Muilt Select to Extended
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

Posting Permissions

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