string queryString = "SELECT SUM(skupaj_kalorij)as Skupaj_Kalorij "
+ "FROM (obroki_save LEFT JOIN users ON obroki_save.ID_uporabnika=users.ID)"
+ "WHERE users.ID= " + a.ToString() + " AND obroki_save.datum =?";
using (OleDbCommand cmd = new OleDbCommand(queryString,database))
{
cmd.Parameters.Add("@datum", OleDbType.Char).Value = DateTime.Now.ToShortDateString();
}
Why doesn't the parameter datum get the date value? (the value of at least one complex parameter has not been determined )