Results 1 to 3 of 3

Thread: Please help me! SEARCH Database

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    1

    Question Please help me! SEARCH Database

    I have a project I am doing for a school library. Our group of students has to put an entire Library CD collection of images onto the hard drive of a computer. Done.

    The hard part:

    Create an exe program in VB 5.0 that will serve as an interface to search these images and their corresponding Access Database (Also Done...).

    HOW do I make a working keyword search? I have searched your awsome site and can't find an applicable script. Is this even possible? For a user to enter 'golf', hit search, and then all the 'description' fields in Access are scanned for the word 'golf'?

    You guys are pure VB, please tell me you can help.

    thanks in advance
    VB_cHiCk
    "Forget learning, start dreaming."

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    you need to dig DAO or ADO(use this one)
    and the SQL statemetn you will use will be something like

    SQL = "SELECT * FROM myTable WHERE Description = '" & txtuserInputbox.text & "'"

  3. #3
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Almost

    You will want wildcard searchs probably.



    Something like :

    DAO :
    Select table.* From table where field like '*" & txtInput & "*';"

    ADO :
    Select table.* From table where field like '%" & txtInput & "%';"


    Regards

    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

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