ten dotaz:SELECT tbl_Pristroj.ID_Pristroj AS JmenoID_Pristroje, tbl_Pristroj.Kategorie, tbl_Pristroj.Nazev AS JmenoNazev, tbl_Pristroj.Typ AS JmenoTyp, tbl_Pristroj.Serial AS JmenoSerial, tbl_Pristroj.Zobrazit, tbl_Pristroj.Usek, tbl_Pristroj.Inv AS JmenoInv, tbl_Pristroj.Klas, tbl_Pristroj.Vyrobce, tbl_Pristroj.Dodavatel, tbl_Pristroj.Servis, tbl_Pristroj.Zarazeno AS JmenoZarazeno, tbl_Pristroj.Instalace, tbl_Pristroj.Inst_kdy AS JmenoInst_kdy, tbl_Pristroj.ROPy, tbl_Pristroj.Vyrazeno, tbl_Pristroj.Vyrazeno_kdy AS JmenoVyrazeno_kdy, tbl_Pristroj.Cena AS JmenoCena, tbl_Pristroj.Rok_vyroby AS JmenoRok_vyroby, tbl_Pristroj.Zaruka AS JmenoZaruka, tbl_Pristroj.PC AS JmenoPC, tbl_Pristroj.Interval_prohl, tbl_Pristroj.Last, tbl_Pristroj.Next, tbl_Pristroj.Poznamka AS JmenoPoznamka, tbl_Kategorie.Kategorie AS JmenoKategorie, tbl_Vyrobce.Vyrobce AS JmenoVyrobce, tbl_Zdrav_useky.Usek AS JmenoUsek, tbl_Klas.Klas_trida AS JmenoKlas_trida, tbl_Firma.Firma AS JmenoDodavatel, tbl_Firma_1.Firma AS JmenoServis, tbl_Firma_2.Firma AS JmenoInstalace, tbl_Interval.Interval_prohl AS JmenoInterval_prohl, qry_last_prohlidka.LastOfKontrola, qry_last_prohlidka.Next_Prohlidka, DateAdd("m",tbl_Interval.Interval_prohl,qry_last_prohlidka.LastOfKontrola) AS JmenoNext
FROM tbl_Klas INNER JOIN (tbl_Kategorie INNER JOIN (tbl_Vyrobce INNER JOIN (tbl_Zdrav_useky INNER JOIN (tbl_Interval INNER JOIN (tbl_Firma INNER JOIN ((tbl_Firma AS tbl_Firma_2 INNER JOIN (tbl_Firma AS tbl_Firma_1 INNER JOIN tbl_Pristroj ON tbl_Firma_1.ID_Firma = tbl_Pristroj.Servis) ON tbl_Firma_2.ID_Firma = tbl_Pristroj.Instalace) INNER JOIN qry_last_prohlidka ON tbl_Pristroj.ID_Pristroj = qry_last_prohlidka.ID_Pristroj) ON tbl_Firma.ID_Firma = tbl_Pristroj.Dodavatel) ON tbl_Interval.ID_Interval = tbl_Pristroj.Interval_prohl) ON tbl_Zdrav_useky.ID_Zdrav_useky = tbl_Pristroj.Usek) ON tbl_Vyrobce.ID_Vyrobce = tbl_Pristroj.Vyrobce) ON tbl_Kategorie.ID_Kategorie = tbl_Pristroj.Kategorie) ON tbl_Klas.ID_Klas = tbl_Pristroj.Klas
WHERE (((tbl_Pristroj.ID_Pristroj) Like PrectiData_klic()) AND ((tbl_Pristroj.Nazev) Like PrectiData_nazev()) AND ((tbl_Pristroj.Typ) Like PrectiData_typ()) AND ((tbl_Pristroj.Serial) Like PrectiData_serial()) AND ((tbl_Pristroj.Zobrazit)=Yes) AND ((tbl_Pristroj.Inv) Like PrectiData_inv()) AND ((tbl_Pristroj.Zarazeno) Between PrectiData_zarazeno() And PrectiData_zarazeno2()) AND ((tbl_Pristroj.ROPy)=True Or (tbl_Pristroj.ROPy)=[Forms]![frm_SELECT]![Vyhledat_ropy]) AND ((tbl_Pristroj.Vyrazeno) Like PrectiData_vyrazeno()) AND ((tbl_Pristroj.Cena) Between PrectiData_cena() And PrectiData_cena2()) AND ((tbl_Pristroj.Rok_vyroby) Between PrectiData_rok() And PrectiData_rok2()) AND ((tbl_Pristroj.Poznamka) Like PrectiData_pozn()) AND ((tbl_Kategorie.Kategorie) Like PrectiData_kategorie()) AND ((tbl_Vyrobce.Vyrobce) Like PrectiData_vyrobce()) AND ((tbl_Zdrav_useky.Usek) Like PrectiData_usek()) AND ((tbl_Klas.Klas_trida) Like PrectiData_klas()) AND ((tbl_Firma.Firma) Like PrectiData_dodavatel()) AND ((tbl_Firma_1.Firma) Like PrectiData_servis()) AND ((tbl_Firma_2.Firma) Like PrectiData_instalace()) AND ((tbl_Interval.Zobrazit)=Yes) AND ((tbl_Kategorie.Zobrazit)=Yes) AND ((tbl_Vyrobce.Zobrazit)=Yes) AND ((tbl_Zdrav_useky.Zobrazit)=Yes) AND ((tbl_Klas.Zobrazit)=Yes) AND ((tbl_Firma.Zobrazit)=Yes) AND ((tbl_Firma_1.Zobrazit)=Yes) AND ((tbl_Firma_2.Zobrazit)=Yes) AND ((DateAdd("m",[tbl_Interval].[Interval_prohl],[qry_last_prohlidka].[LastOfKontrola])) Between PrectiData_datum() And PrectiData_datum2()));
|