As soon as I add an extra argument to it.
If I remove the last bit I added, the group and group variable, so the query is as belowCode:String query = "INSERT INTO logged_calls" + "(firstName,secondName,telNumber,priority,dept,assetNum,category,summary,description,group)" + "VALUES" + "('" + firstName + "','" + secondName + "','" + telNumber + "','" + priority + "','" + dept + "','" + assetNum + "','" + category + "','" + summary + "','" + description + "','" + group + "')";
Everything works fine. Is there some sort of limit to how many fields I can pull out or anything, as there is nothing wrong with the code.Code:String query = "INSERT INTO logged_calls" + "(firstName,secondName,telNumber,priority,dept,assetNum,category,summary,description)" + "VALUES" + "('" + firstName + "','" + secondName + "','" + telNumber + "','" + priority + "','" + dept + "','" + assetNum + "','" + category + "','" + summary + "','" + description + "')";
Its only an access database but I wouldnt think this would be a problem.
Thanks








Bookmarks