CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Guest

    Jet SQL syntax question

    How do I do wildcards (for numbers or strings) in Jet SQL. My book says

    WHERE [field] Like '*'

    and

    WHERE [field] Like #

    but these didn't work. What's the correct syntax? Thank you.


  2. #2
    Join Date
    May 2000
    Location
    California
    Posts
    5

    Re: Jet SQL syntax question

    I am wondering this same question. The SQL works fine in Access with the wild cards but not through ADO to the Jet engine.

    I can get SQL to work if I am not using wildcard characters, but that greatly limits the flexibility of the program.


  3. #3
    Join Date
    Apr 2000
    Location
    RUSSIA
    Posts
    111

    Re: Jet SQL syntax question

    WHERE [field] Like '%A%';

    If i help - rate.

  4. #4
    Guest

    Re: Jet SQL syntax question

    Try "where field like '%'"


  5. #5
    Join Date
    Jan 2001
    Posts
    1

    Solution

    You will just have to supply double quotes, i.e.:
    WHERE [field] Like "*"


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

Featured