HI again folks. I spent my weekend coding a function to do statistical analysis on a time series and to my amazement it works without a hitch. I even verified my results were correct with excel. I am having an issue passing these values to my database table. All JDBC drivers are loaded correctly as I can "hard-code" a String and pass run executeUpdate() and it works. Of course I cannot hard-code my entire project.
The error I am getting is:
"Unable to update record: njava.sql.SQLEx ception: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1."
Thoughts, advice, suggestions??
As I stated earlier if i do something like:
it works.
Code:
//update masterTable
String sqlRecord ="Update MasterTable set [Slope] = "+beta1+" WHERE Abbreviation = "+company;
try
{
db_statement.executeUpdate(sqlRecord);
System.out.println ("-= record updated =-");
}catch (Exception excep) {
System.out.println ("Unable to update record: n" + excep);
System.exit(0);
}
"Unable to update record: njava.sql.SQLEx ception: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1."
Thoughts, advice, suggestions??
As I stated earlier if i do something like:
Code:
String sqlRecord("Update Mastertable set [slope] = '-0.3234234243645' WHERE Abbreviation = 'AAPL'");
Comment