lnSEQNO=SEQNO && You must change this!! Select * from RZStop where; RTE_NO + RTE_LET + DIRECTN + STR(SEQNO,4) + STR(NUMBER,3)=lcRteNo + "A" + lcDirectn + STR(lnSEQNO,4) + STR(lnNumber,3) into cursor dummy nofilter Select DISTINCT TIME from dummy ; where ALLTRIM( RZStop.RTE_NO) == lcRteNo ; and RZStop.RTE_LET == "A" ; and RZStop.DIRECTN == lcDirectn ; and ALLTRIM( RZStop.Stop) == lcStopNo ; and ALLTRIM( RZStop.County) == lcCounty ; and RZStop.Number == lnNumber ; and not EMPTY( RZStop.TIME) ; to SCREEN NOCONSOLE>Tore