|
Posted by: Billion Dollar Boy on 2010-07-08, 11:20:09
Let's say you have a combo box (Combo0 ) with three names in it Ben Donna Adam If you select your drop down box, then right click and view properties - then go to the events tab and click the "afterupdate " event. Click the build button (...) and this will open up the VBA area. Add this code inside the afterupdate sub: If Me.Combo0.Text = "Donna " Then MsgBox ( "Welcome Donna ") End If This will give a message only if Donna is selected (remember to change the combo0 to the name of your combo box. If you want to send a message to anyone selected, instead of just Donna, use this code instead: MsgBox ( "Welcome " & Combo0.text) |