Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • It doesnt give error but doesnt give back the result properly returns Column Name instead of value Commented May 8, 2013 at 3:24
  • my mistake. inside quotes becomes a literal. Commented May 8, 2013 at 4:05
  • 2
    Good suggestion, but unfortunately it does not work for Access ODBC (I just tested it in Eclipse and got the "Too few parameters" error when I tried to .execute() the prepared statement) so it appears not to help @user1614217 with their problem. Commented May 8, 2013 at 21:53
  • 1
    Problem is not with query but with prepared statment. Commented May 9, 2013 at 8:15
  • I havent find the solution for it. still struggling. But with my coding experience and knowledge I can tell the problem is not the SQL query its the Preparedstatments mechanism which replaces ? in the string. Commented May 10, 2013 at 11:45