mobjrec.SQL = "SELECT * From Pans where Panou='" & replace(Combo7.text, "'", "''") & "';"
mobjrec.SQL "SELECT INCHIRIERI.IDInchiriere, PANOURI.CodPanou FROM PANOURI INNER JOIN INCHIRIERI ON PANOURI.IdPanou INCHIRIERI.Panou where ((Panouri.codPanou ='" & Replace(Combo7.Text, "'", "''") & "';") and (DataInchirierii=# " & DTPicker1.Value & "#"))
mobjrec.SQL "SELECT INCHIRIERI.IDInchiriere, PANOURI.CodPanou FROM PANOURI INNER JOIN INCHIRIERI ON PANOURI.IdPanou INCHIRIERI.Panou WHERE (Panouri.codPanou = '" & Replace(Combo7.Text, "'", "''") & "') AND (DataInchirierii = #" & DTPicker1.Value & "#);"