Giorgio, please remember to keep previous messages when you reply so we don't have to dig through posts to see how to help. You wrote:
Access 2010, Windows 7
Select Case Me.Combo46
Case "American Eagle"
Me.Stock = "AEO"
Case "Broadcom Inc"
Me.Stock = "AVGO"
Case "XPERI CORPORATION"
Me.Stock = "XPER"
Case "Bank of America"
Me.Stock = "BAC"
Me.Stock = "NE"
Case Is = "Ocean PWR"
Me.Stock = "OPTT"
Case Is = "Rigel Pharmaceuticals"
Me.Stock = "RIGL"
-------------------------------------------------------
As Duane suggested, a table is the way to go. I see 2 columns -- stock abbreviation, and stock name. It appears you want to pick by the name and store the abbreviation. You can create a combo box with 2 columns. Maybe you want to make 2 combo boxes, since you show the stock abreviation -- one that has the stock abbreviation, and the other that is sorted by stock name -- both bound to the stock abbreviation. Here is a video about combo boxes:
What is a Combo Box?
https://www.youtube.com/watch?v=2y85oDWaSh0
have an awesome day,
crystal
Hi DuaneIf you used a table rather than hard-coding the values, how would Private Sub Combo46_AfterUpdate() turn out?Giorgio
Posted by: crystal 8 <strive4peace2008@yahoo.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (7) |
Tidak ada komentar:
Posting Komentar