Results 1 to 2 of 2

Thread: SQL

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Location
    London, UK
    Posts
    39

    Talking

    Hi,

    Can anyone help me with a SQL VB intergration problem?

    I am trying to display the results of an SQL querie in a DataGrid without using a data bound controller. Does anyone know how to do this?

    I would be greatful to any responses.

    Thanx
    Sajjad

  2. #2
    Member
    Join Date
    Jan 2000
    Location
    Quantico, VA, USA
    Posts
    41

    Cool

    try using ado.
    create a recordset that retrieves the information needed:

    dim rs as new adodb.recordset
    rs.open "select * from Table", cnxConnection

    set the datagrids datasource property to the recordset:

    set dgrid.datasource = rs

    and that should work. i usually use listviews myself, but that's a little more complicated.

    good luck
    chuck
    To err is human, but to apologize frequently is embarassing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width