private void AddValue(string strValue) { //get the maximum id for Lists first int MaxID = DataOperations.ReturnMaxIDInATable(\"Lists\", connString);
This seemed to do the trick..
string query = string.Format("INSERT INTO Lists(ID, ListName, ListValue) VALUES({0}, '{1}', '{2}')", MaxID, ListName, strValue);
Although I have reservations about it like what if I need to add a date value?