Compare date from database and in program
Posted
by Simon
on Stack Overflow
See other posts from Stack Overflow
or by Simon
Published on 2010-05-20T13:03:56Z
Indexed on
2010/05/20
13:10 UTC
Read the original article
Hit count: 227
database = new OleDbConnection(connectionString);
database.Open();
date = DateTime.Now.ToShortDateString();
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= " +DateTime.Today.ToShortDateString();
loadDataGrid2(queryString);
I get an error,when i wan't to select the result. Why?
© Stack Overflow or respective owner