11-11-15, 16:13 #1Registered User
- Join Date
- Nov 2015
Unanswered: Populating a single bound textbox with multiple check boxes on a separate form
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.
11-11-15, 16:22 #2(Making Your Life Easy)
Provided Answers: 10
- Join Date
- Feb 2004
- New Zealand
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 & " "
make shour you have the Muilt Select to Extendedhope this help
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
DONT WORRY ABOUT THOSE WHO TALK BEHIND YOUR BACK
THEY'RE BEHIND YOU FOR A REASON