use hafinish in select("hafinish") sele hafinish use in select("partyled") if not file("partled.dbf") copy stru to partled endif use partyled in select("partyled") excl sele hafinish go top do while not eof() sele partyled append blank repl..... select hafinish skip enddo sele partyled go top report form partyled to print prompt nocons nowaitthe above command showing first page perfect, but when i click on next page, it is giving error "variable rem1 not found..."