Where's the problem in my code ?
string constr = "Provider=Microsoft.Jet.OLEDB.4.0;"
+ "Data Source=C:\\Users\\Simon\\Desktop\\test5\\test5\\test5\\save.mdb";
OleDbConnection conn = new OleDbConnection(constr);
string sql = "SELECT users.user_name,naziv,obroki_save.datum"
+ "FROM zivila JOIN obroki_save ON zivila.ID=obroki_save.ID_zivila"
+ "JOIN users ON obroki_save.ID_uporabnika=users.ID";
OleDbCommand cmd = new OleDbCommand(sql, conn);
conn.Open();
OleDbDataReader reader;
reader = cmd.ExecuteReader();
while (reader.Read())
{
Console.Write(reader.GetString(0).ToString() + " ,");
Console.Write(reader.GetString(1).ToString() + " ,");
Console.WriteLine("");
}
reader.Close();
conn.Close();