Results 1 to 3 of 3

Thread: Select Statement

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    5

    Cool Select Statement

    When I run this query I get an error of:

    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

    [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'CatCode='.

    /projectli/ass1/managehomes.asp, line 79

    The query is listed below:

    objRS.open "Select * FROM Choice WHERE CatCode=" & taste

    Can you help me please

  2. #2
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375
    You might have to enclose the CatCode variable in '

    e.g

    VB Code:
    1. objRS.open "Select * FROM Choice WHERE CatCode='" & taste & "'"

    Cheers
    Markus

  3. #3
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    OR

    your "taste" variable is empty.
    check it by typing

    response.write "taste value =" & taste
    response.end

    in front of your sql statement.

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