The problem is the strings I am inserting into the database have spaces within them but when I try to use the square bracket around the string to avoid Syntax error (missing operator) in query expression
error it gives me the error:
No value given for one or more required parameters
TblCustomer.CommandTable("INSERT INTO TblCustomer ([CustomerCode],[FirstName]," +
"[SecondName],[Topics],[Countries]) Values(['" +
TblCustomer.StrGenerateRandomCode("TblCustomer",15) + "'],['" + FirstName + "'],['" +
SecondName+"'],['" + Topic + "'],['" + Country + "]');");
Here is the query and everything is spelled correctly because I am able to insert into the table without the square brackets and no spaces within the string I am inserting.