private void LoadMe() { string dbase = ""; if (ReturnMe.CodesOnly == true) { dbase = "captive_database.sbtc_history"; } if (ReturnMe.CodesOnly == false) { dbase = "captive_database.sbtc_history"; } string sql = "SELECT DISTINCT(DeliveryDate) FROM " + dbase + " WHERE HashSentDate is NULL AND HashSentTime IS NULL"; string MyConnection2 = "datasource=" + ReturnMe.server + ";port=3306;username="******";password="******"yyyy-MM-dd"); cboDeliveryDate.Items.Add(DeliveryDate); LoopCount = LoopCount + 1; } }