+ Reply to Thread
Results 1 to 16 of 16

SQL Syntax Error

Hybrid View

  1. #1
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: SQL Syntax Error

    You are passing the literal string 'untill' in your SQL, not concatenating the variable into it.

    Note: please use code tags whenever you post code as required by the forum rules. I have added them for you on this occasion but you must do it yourself in future, please.
    Everyone who confuses correlation and causation ends up dead.

  2. #2
    Registered User
    Join Date
    01-27-2011
    Location
    Cardiff, Wales
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: SQL Syntax Error

    Quote Originally Posted by romperstomper View Post
    You are passing the literal string 'untill' in your SQL, not concatenating the variable into it.
    So you're saying that currently I'm literally inserting the word "untill" into my query rather than the variable contained within "untill"? How do I refer to the variable then?


    Thanks for the heads up on the code tags, I'll do that in the future
    Last edited by JoWales; 02-25-2011 at 11:01 AM. Reason: Corrected a spelling mistake

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1