I have a form with a combo box that is fed by a look up table. The look up table has an auto id and a text field. The text is what you see in the combo box on the form but it's one of those bound to column 1 (auto id), column count is 2, column widths are 0" and 3" kind of things (my experience with Access 2003 is that this was a common thing to do. Is there a better way to do it now?).
Expand|Select|Wrap|Line Numbers
- //values in look up table lut_Island which feeds cbo_Island on the form.
- //The value chosen in cbo_Island gets stored in [IslandName] in the main table.
- 1 Apple Island
- 2 Banana Island
- 3 Coconut Island
- // etc.
Expand|Select|Wrap|Line Numbers
- Private Sub txtField_AfterUpdate()
- txtField = [IslandName] & " Platform " & txtField
- End Sub
I hope I have explained this well.
What is the code I have to use to get the text value of the combo box to display and not the code value?