Results 1 to 2 of 2

Thread: Database Searching

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    14

    Post

    I am currently trying to incorperate the LIKE statement to search strings in a database and return close matches. I'm making an inventory database and would like to search the Item Description field. It's going good so far but I was wondering if anybody had a good syntax for seaching.

    Ex.

    MyCheck = "aBBBa" LIKE "a*a"

    thanks,

    Jeremy

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Location
    Springfield, IL
    Posts
    124

    Post

    You might be better of using the LIKE in a SELECT statement from your database. That way you don't have to code this in VB.
    Code:
        select INV_NUM from INVENTORY_TABLE where INV_NUM LIKE 'a*a'

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