>Select Indiar.*, cSec, cHora, cEmp, cRef, Space(40) As cOpc, Indiar.TesMinu As TMin, 00000 As Malas ; > From Indiar, &TSec S, &TTur T, &TOpe O, &TRef R ; > Where Indiar.CodSecc = S.CodSecc And Indiar.Turno = T.Turno ; > And Indiar.Operario = O.Operario And Indiar.Referencia = R.Referencia ; > And BetWeen(Indiar.FechaProd, Fec1, Fec2) &wWhere ; > Order By Indiar.FechaProd, Indiar.CodSecc, Indiar.Referencia, Indiar.Operalte, Indiar.Operacion, ; > Indiar.Operario, Indiar.Es_Extra ; > Into Table (lTable1)And what's wrong here? Do you get error message or incorrect result?