I am using JAVA JDK 5 to manipulate an Access 2003 database. The below UPDATE statement produces the error below:
"UPDATE [*Server times] SET [*Server times].[Tsf P1] = ? WHERE [Object type] = "+valuesCurrent[0]+" AND [SRAN ID] = "+valuesCurrent[1]+" AND [SERVER TYPE]= "+valuesCurrent[2];
here is the error:
“[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.”
If I drop one of the criteria the statement does not produce an error, but it does not update the database correctly because one of the criteria was not enforced, for example:
"UPDATE [*Server times] SET [*Server times].[Tsf P1] = ? WHERE [Object type] = "+valuesCurrent[0]+" AND [SRAN ID] = "+valuesCurrent[1];
I checked to make sure that the spelling of the tables are correct, in fact it does not matter which of the three criteria is removed, it still works.
Any ideas?
Thanks in advanced.
"UPDATE [*Server times] SET [*Server times].[Tsf P1] = ? WHERE [Object type] = "+valuesCurrent[0]+" AND [SRAN ID] = "+valuesCurrent[1]+" AND [SERVER TYPE]= "+valuesCurrent[2];
here is the error:
“[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.”
If I drop one of the criteria the statement does not produce an error, but it does not update the database correctly because one of the criteria was not enforced, for example:
"UPDATE [*Server times] SET [*Server times].[Tsf P1] = ? WHERE [Object type] = "+valuesCurrent[0]+" AND [SRAN ID] = "+valuesCurrent[1];
I checked to make sure that the spelling of the tables are correct, in fact it does not matter which of the three criteria is removed, it still works.
Any ideas?
Thanks in advanced.