Results 1 to 4 of 4

Thread: dbgrid

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    15

    dbgrid

    i have some problem loading record to the dbgrid. below is the part of the code

    dim adocon as new adodb.connection
    dim adors as new adodb.recordset

    adocon.open ........ bla bla bla
    adors.open "select * from something",adocon,, adOpenDynamic, adLockOptimistic, -1

    set dbgrid1.recordsource = adors


    but this code give me error that i don't understand...
    please advice and some solution

  2. #2
    Lively Member
    Join Date
    Jun 2000
    Location
    Ontario, Canada.
    Posts
    85
    Hi jimmykwh,

    What type of the dbGrid are you using. Is it the type that will use OLEBD. I am using the True DB Grids, and when I use ADO, the grid must be the OLEDB type instead of the regular one. Not to sure if this will help, but good luck.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    15
    thanks jim but can you tell me how to find or load the oledb dbgrid up so i can used it....

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    It's in the component list as 'Microsoft DataGrid Control 6.0' It may have an (SP5) after that and then it'll have (OLEDB) at the end.

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