Page 1 of 1

Syntax Error

Posted: Tue Jan 07, 2014 12:29 pm
by hungryhounduk
Hey Guys and gals

Image


I have an Syntax Error (End of Statement expected), I have been on to Msdn Help but cannot find a solution omg; I know this is something so stupid and just shows how Thick I am lmao; But can someone point me in the right direction...

Cheers

Chris

Re: Syntax Error

Posted: Tue Jan 07, 2014 12:37 pm
by Shim
The SQL query should be inside a " "

For example : "SELECT * FROM Sales WHERE ClientID = @clientID"

Re: Syntax Error

Posted: Tue Jan 07, 2014 12:55 pm
by hungryhounduk
Hey Thanks Fella
That's sorted it out Great

Many Thanks = Respect

Chris