vb6.0 search button help!-VBForums
Results 1 to 3 of 3

Thread: vb6.0 search button help!

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    1

    vb6.0 search button help!

    guys... can u give me a code for search button in vb6.0 using ADODB connected to datagrid control...
    the ADO connected to ms access database...

    for example... i search the name of the student in the text box and i click the search button... the result will appear in the datagrid control...
    please... help

    thnx in advance...
    Last edited by lemetedz000; Feb 7th, 2009 at 12:51 AM.

  2. #2
    New Member
    Join Date
    Feb 2009
    Posts
    8

    Re: vb6.0 search button help!

    What I would do is modify your query string and reload the data.
    Like
    select * from student where lastname = 'kid' or select * from student where firstname like '%dan%'

    Just a suggestion.
    Dan

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    37,027

    Re: vb6.0 search button help!

    Welcome to VBForums

    Thread moved to Database Development forum (the "VB6" forum is meant for questions which don't fit in more specific forums)

    You can find further explanation of what Dan suggested in the "Further Steps" link in my signature. Like many of the other articles around, it does not use bound controls (like the DataGrid) but you may be able to find the extra info you need in the "bound controls" section of our Database Development FAQs/Tutorials (at the top of this forum)

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.