Results 1 to 3 of 3
  1. #1
    jsoldi is offline Novice
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Oct 2010
    Posts
    2

    Question What's wrong with this query?

    I'm new to Access. I'm trying to run this SQL query:



    Code:
    SELECT 
    Title.InnerText AS SystemID, 
    RamSerial.InnerText AS RamSerial, 
    RamTitle.InnerText AS RamTitle, 
    RamModuleSize.InnerText AS RamModuleSize,
    RamPackage.InnerText AS RamPackage,
    RamFeature.InnerText AS RamFeature,
    RamSpecs.InnerText AS RamSpecs,
    Rating.InnerText AS Rating,
    Price.InnerText AS Price,
    RamSerial.Url
    FROM 
    Title LEFT JOIN TitleInRam ON Title.InnerText = TitleInRam.InnerText 
    LEFT JOIN RamSerial ON TitleInRam.Url = RamSerial.Url 
    LEFT JOIN RamTitle ON TitleInRam.Url = RamTitle.Url 
    LEFT JOIN RamModuleSize ON TitleInRam.Url = RamModuleSize.Url 
    LEFT JOIN RamPackage ON TitleInRam.Url = RamPackage.Url
    LEFT JOIN RamFeature ON TitleInRam.Url = RamFeature.Url
    LEFT JOIN RamSpecs ON TitleInRam.Url = RamSpecs.Url
    LEFT JOIN Rating ON TitleInRam.Url = Rating.Url
    LEFT JOIN Price ON TitleInRam.Url = Price.Url
    But I get the error: "Syntax error (missing operator) in query expression 'Title.InnerText = TitleInRam.InnerText...'". The actual error message shows my query from "Title.InnerText = TitleInRam.InnerText" to the end.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Have you tried it without all of the .InnerText references?

  3. #3
    evander is offline Competent Performer
    Windows 7 Access 2003
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    206
    1. There is no semi-colon (unless you intentionally removed that).
    2. Access SQL prefers nested joins, multi-table equijoins. Meaning, you have to specify which gets joined first to what, using lots of parentheses.
    3. Maybe TitleinRam.url is joined to a lot of tables?

    Try creating your query in a QBE. And join one table at a time, until you stumble on the join that makes your entire query fail.

    Good luck.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Query for latest date? what am I doing wrong?
    By Overdive in forum Queries
    Replies: 1
    Last Post: 12-18-2009, 06:04 AM
  2. What is wrong with this code?
    By nkenney in forum Forms
    Replies: 2
    Last Post: 11-16-2009, 03:04 PM
  3. What's wrong with this expression
    By tallroger in forum Access
    Replies: 1
    Last Post: 05-05-2009, 04:00 PM
  4. Compiler WRONG example-DB
    By pacala_ba in forum Access
    Replies: 12
    Last Post: 04-18-2009, 01:00 PM
  5. What am I doing wrong?
    By brandon in forum Access
    Replies: 2
    Last Post: 08-03-2008, 10:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums