Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2009
    Posts
    2

    Question Unanswered: SQL statement error - pls help

    When i try the following SQL query, i get an error:

    Expr1: "<Placemark><name>" & [rsPubname] & "</name><description><!
    [CDATA[" & [rsAddress] & "<br>" & [rsTown] & "<br>" & [rsCounty] &
    "<br><br>mypubspace.com - More info, click the
    link:<br><href><Link>http://www.mypubspace.com/viewpub1.asp?PubID=" &
    [PubID] & "</Link></href><br>]]></description><Point><coordinates>" &
    [rsLong] & "," & [rsLat] & "</coordinates></Point></Placemark>"

    the error:

    invalid SQL statement expected 'INSERT', 'DELETE, 'SELECT' etc;;

    please help?

  2. #2
    Join Date
    Feb 2009
    Posts
    2
    Please can anyone help?

  3. #3
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,423
    Provided Answers: 8
    That does not look like SQL to me

    sql should look something like

    SELECT Someting FROM Something WHERE Something = something ORDER BY something

    that look like part of the SQL you try into build up a feildname Expr1 is the default value mircosoft give when build a feild in query.

    will need to see more.
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  4. #4
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    It looks like you are trying to build an expression in a query that results in some HTML or XML segment, but I'm kinda guessing too.

    Provide more simple detail on your problem and things might start to become clear and allow us to help you.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

Posting Permissions

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