hi,
i try via your code ,if i insert employee no and insert 1 into text2 and 15 into text3 it works,
but i need to print all emplyee every employee at one paper,as if the printer print employee no.1 skip to print no.2... to end of file where no=m.no
this code under get space.what is rong.
CLOSE ALL
USE MSTR IN 0
SELECT MSTR
M.DAT=DAT
m.no=NO
m.nMin=1
m.nMax=15
DO WHILE no=M.NO
Select *from tax1 where no=m.no and montno between m.nMin and m.nMax
into cursor employees
report form coptax111 preview
skip
ENDDO
thanks
>
>i don't want to insert any thing at any textbox at my form ,just i want to press at command1 to run mycode>
>That is fine and it is what your code and mine do. You press
command1
to run the code. It reads whatever the user entered in textboxes in your form. That is what I was referring to.