I having a problem while I trying to select data from a Firebird database, here is my code:
string SQLCash = "SELECT sum(t2.Cash-Change)" +
"FROM dbFBHdr t1, dbFBCollection t2" +
"WHERE t1.Branch = t2.Branch AND" +
"t1.CashNo = t2.CashNo AND" +
"t1.CashDate >= '08/10/2018 00:00:00' AND" +
"t1.CashDate <= '08/10/2018 23:59:59' AND" +
"t1.Status = 'CLOSED'";
FbCommand cmdCASH = new FbCommand(SQLCash, FbCon);
cmdCASH.ExecuteNonQuery();
FbDataReader readerCASH = cmdCASH.ExecuteReader();
while (readerCASH.Read() == true)
{
PDC.CASH += (reader["Cash"].ToString());
}
this.txtCash.Text = PDC.CASH;
But with this code, I having an error but I don't know how to solve it.
I attach my error at below: