Results 1 to 3 of 3
  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2009

    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

    Re: vb6.0 search button help!

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

    Just a suggestion.

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

    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


Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.