Results 1 to 5 of 5

Thread: Recordset.filter 'NOT LIKE' (opposed)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Posts
    297

    Recordset.filter 'NOT LIKE' (opposed)

    Can anyone tell me how to get records with searching for a string which is not in the database?

    In other words: the opposed of myrs.filter = "Number LIKE '102'"

    sort of: "Number NOT LIKE '102'"

    I would be grateful!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Have you tried NOT Number LIKE ?

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    This is vb.net or vb6?

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Posts
    297

    Nope!

    I've tried that as well,
    won't work!

    I've tried myrs.filter = "NOT Number LIKE '102'"

    and

    I've tried myrs.filter = NOT "Number LIKE '102'"

    (nice line anyway: To boldly go where robots have gone before)

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Posts
    297

    Yep!

    It does work,
    I have not looked hard enough and the solution is just to simple.

    It's: mmm NOT LIKE mmm etc

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