Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2004
    Location
    Utah, USA
    Posts
    70
    Thanks
    1
    Thanked 0 Times in 0 Posts

    ASP & Access Query

    Hello, I'm not sure this is the right forum. I'm having issues with a query. I'm using ASP (VBScript) and MS Access. The syntax of the query seems to be fine within other syntax validators, but Access doesn't like it. I'm getting an operator error.

    Code:
    SELECT TOP 5 Category.Title, article.pubDate, article.Title AS Title, *
    FROM Article
    INNER JOIN Article_Category ON Article.ID = Article_Category.ArticleID
    INNER JOIN Category ON Article_Category.CategoryID = Category.ID
    WHERE Article.ID IN (SELECT Article_Category.ArticleID FROM  Article_Category
    WHERE Article_Category.CategoryID IN (
    SELECT Article_Category.CategoryID
    FROM Article_Category
    WHERE Article_Category.CategoryID.ArticleID = 5132005));
    Thanks.

  • #2
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    change this to a string

    5132005-----make this a string ie '5132005'


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •