How do i select a specific listbox value using code
A Arvin Meyer [MVP] Jan 5, 2006 #2 Try: Me.ListboxName or Forms!FormName!ListboxName -- Arvin Meyer, MCP, MVP Microsoft Access Free Access downloads http://www.datastrat.com http://www.mvps.org/access
Try: Me.ListboxName or Forms!FormName!ListboxName -- Arvin Meyer, MCP, MVP Microsoft Access Free Access downloads http://www.datastrat.com http://www.mvps.org/access
K Klatuu Jan 5, 2006 #3 Forms!MyFormName!MyListBoxName.Selected(0) = True Will select the first row in the list box.
J John Vinson Jan 7, 2006 #4 How do i select a specific listbox value using code? Click to expand... By specifying its name: Me!lstMyListbox or Dim strControlName as String .... strControlName = "lstMyListbox" .... then do something with Me.Controls(strControlName). John W. Vinson[MVP]
How do i select a specific listbox value using code? Click to expand... By specifying its name: Me!lstMyListbox or Dim strControlName as String .... strControlName = "lstMyListbox" .... then do something with Me.Controls(strControlName). John W. Vinson[MVP]