Hello, I am having a trouble getting this piece of code to work. When users click on the "New" button, they enter the information into the text boxes and click "save". The data is suppose to be saved in SEQUEL. But once the user execute, there is a database error. I believe it is in the sql statements.
string strSQL = "";
DataTable Fields = new DataTable();
switch (ForAction.ToString())
{
case "New":
strSQL = "Insert into Test.Data ";
strSQL += " (";
strSQL += " Test_Number, ";
strSQL += " Test_Code ";
strSQL += "Values ( ";
strSQL += " " + Test_Number.Text.ToString().ToUpper().Trim() + ", ";
strSQL += " " + Test_Code.Text.ToString().ToUpper().Trim() + " ";
strSQL += ")";
Can someone see what is wrong? Thanks for the help in advance!
string strSQL = "";
DataTable Fields = new DataTable();
switch (ForAction.ToString())
{
case "New":
strSQL = "Insert into Test.Data ";
strSQL += " (";
strSQL += " Test_Number, ";
strSQL += " Test_Code ";
strSQL += "Values ( ";
strSQL += " " + Test_Number.Text.ToString().ToUpper().Trim() + ", ";
strSQL += " " + Test_Code.Text.ToString().ToUpper().Trim() + " ";
strSQL += ")";
Can someone see what is wrong? Thanks for the help in advance!