Results 1 to 4 of 4

Thread: Advanced dataset filtering help.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    67

    Advanced dataset filtering help.

    arows = ListsTBL.Select("col001 like '%caseIMDATA1%\" & BOID & ".tif'")

    Ok the this is the dataset filter criteria it translates out to:


    col001 like '%caseIMDATA1%\30301.tif' :::::::::: as the filter

    In sql the equivalant

    select * from lists where col001 like '%caseIMDATA1%\30301.tif'

    works like a charm!

    IN vb.net i get this error:

    An unhandled exception of type 'System.Data.EvaluateException' occurred in system.data.dll

    Additional information: Error in Like operator: the string pattern '%caseIMDATA1%\30301.tif' is invalid.


    Please anyone that can privde any info help! My entire project has been leading up to the requirements of this filter to work, else i have a LOT of rewrite to do :/

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    try using *'s instead of %'s
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    67
    I don't think the problem is in the wildcard character because running a filter with %fred works absolutely fine.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    67
    I figured out a way around this using multiple queries, but does anyone know if this is a bug in vb.net? or just not supported?

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