Display 2 fields in my a database table in a list box


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Display 2 fields in my a database table in a list box

  1. #1
    folbabe Guest

    Display 2 fields in my a database table in a list box


    Hi Folks,

    Can anybody show me how to display two fields in my database table as two
    columns in my listbox

    Thanks in advance.


    Regards

  2. #2
    macca Guest

    Re: Display 2 fields in my a database table in a list box


    "folbabe" <folbabe@hotmail.com> wrote:
    >
    >Hi Folks,
    >
    >Can anybody show me how to display two fields in my database table as two
    >columns in my listbox
    >
    >Thanks in advance.
    >
    >
    >Regards


    Open a recordset with the two fields in it and then to the following:

    Do Until Rs.EOF
    Listbox1.AddNew
    Rs!Field1 & vbtab & Rs!Field2
    Loop




  3. #3
    folbabe Guest

    Re: Display 2 fields in my a database table in a list box


    Hi Macca

    I tried but it gives me a syntax error in the line below

    Rs!Field1 & vbtab & Rs!Field2

    Hope to read from you soon


    "macca" <tim@agcl.net> wrote:
    >
    >"folbabe" <folbabe@hotmail.com> wrote:
    >>
    >>Hi Folks,
    >>
    >>Can anybody show me how to display two fields in my database table as two
    >>columns in my listbox
    >>
    >>Thanks in advance.
    >>
    >>
    >>Regards

    >
    >Open a recordset with the two fields in it and then to the following:
    >
    >Do Until Rs.EOF
    > Listbox1.AddNew
    > Rs!Field1 & vbtab & Rs!Field2
    >Loop
    >
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center