DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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
    >
    >
    >



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links