Results 1 to 2 of 2

Thread: Recordset & Datagrid

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Posts
    14

    Lightbulb

    hi,
    i am using datagrid and recordset for displaying records from table.

    _______
    cmd_click()
    strsql = "select * from employee where ename like '" & txtename.Text & "%'"

    rs.open strsql,cn
    datagrid.datasource = rs

    'rs.close
    'rs.requery
    end sub

    after entering the value in txtename and pressing button , i am getting records in datagrid but when i am trying to execute second time with another value , i unable to get the records. when i am closing the rs i cannot able to see the records in datagird (it's flashing the records)
    pl. help for solving the problem.

    bye.

  2. #2
    Addicted Member
    Join Date
    Feb 1999
    Location
    Belfast
    Posts
    254
    Hi Pravalike, I tried your code with a MSHFlexgrid and it worked fine. I could get it to go at all with a recordset as a simple data grid.

    HTH

    Lenin

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