I have a listbox full of database items. How do I add item "All ofthe above"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • COHENMARVIN@lycos.com

    I have a listbox full of database items. How do I add item "All ofthe above"

    I have a listbox of cities.
    The listbox is bound to a database table.
    But I want to add the option - "all cities" to the listbox.
    How do I do that?

    Thanks,
    Marvin
  • Matt MacDonald

    #2
    Re: I have a listbox full of database items. How do I add item "All of the above"

    After you bind the control, do something like

    listbox1.items. add("All Cities")

    <COHENMARVIN@ly cos.comwrote in message
    news:fd0888fa-7f5a-473f-b11f-3267366e5731@f6 3g2000hsf.googl egroups.com...
    >I have a listbox of cities.
    The listbox is bound to a database table.
    But I want to add the option - "all cities" to the listbox.
    How do I do that?
    >
    Thanks,
    Marvin

    Comment

    • Trevor Benedict

      #3
      Re: I have a listbox full of database items. How do I add item &quot;All of the above&quot;

      Use the Listbox.Items.I nsert method after binding the data to a datasource.

      Regards,

      Trevor Benedict
      MCSD


      "Matt MacDonald" <mattsmac@hotma il.comwrote in message
      news:%23f0xa7sq IHA.4928@TK2MSF TNGP04.phx.gbl. ..
      After you bind the control, do something like
      >
      listbox1.items. add("All Cities")
      >
      <COHENMARVIN@ly cos.comwrote in message
      news:fd0888fa-7f5a-473f-b11f-3267366e5731@f6 3g2000hsf.googl egroups.com...
      >>I have a listbox of cities.
      >The listbox is bound to a database table.
      >But I want to add the option - "all cities" to the listbox.
      >How do I do that?
      >>
      >Thanks,
      >Marvin
      >
      >

      Comment

      Working...