Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I m getting error '[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.'

 
java mohamed
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am getting error '[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.'


my code is below





help me.. thanks in advance
 
Prasad Krishnegowda
Ranch Hand
Posts: 667
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This exception may come with MS-Access database, when you specify a column name in a select statement. Try giving * instead of the fields.. also, try removing the where condition if the error persists..
 
T. Huy Nguyen
Ranch Hand
Posts: 57
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This line



does not seem right because CQ_ID is of type String and there is no quote around CqId
 
Jan Cumps
Bartender
Posts: 2588
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have a resource leak here. You return without closing your resources.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic