Can you make sure there are data in the table selected like the following
Select mytable
go top
if eof()
wait window "No records found for printing"
else
report form ......
endif
Benny
> > >To
> > > > Suvi Joseph
> > > >
> > > > Respected sir
> >
> > That does not make any difference. Do you think i should give any condition in printwhen properties of the report.
> >
> > Regards
> > Vijayendran
> >
> > > To
> > > > Suvi Joseph
> > > >
> > > > Respected sir
> > > >
> > > > Onclick of ok button, the preview is seen which lasts hardly for even a second & the next minute it runs out. I give the command 'report form' in the click procedure of ok button
> > > >
> > > > Regards
> > > > Vijeyendran
> > > >
> > > >
> > > > > >
> > > > > >
> > > > > > I have a form with 3 option buttons named vendor,material & general & three seperate reports for the previous three optionbuttons. Onclick of ok command button, the report for vendor should be displayed & similarly the two should be displayed. My problem is onclick of ok button , the form does call the report but it runs out immediately.
> > > > > >
> > > > > > Regards
> > > > > > Vijayendran S
> > > > > Hi,
> > > > > What do you mean by runs out immediately. Do you mean it doesnt show the report in a window or doesnt print the report? I suppose you use reort designer for the reports. In that case where you are givint he 'report form' command?
> > > > >
> > > > > Regards,
> > > > > Suvi Joseph
> > > > >
www.sssoftwares.com> > > >
> > > >
> > > > Vijayendran S
> > >
> > > Hello Vijayendran,
> > > Try selecting the table just before the 'report form' command. and issue a 'go top' after selecting table. Make sure that you have records in the table. If no record is there it wont print anything. That way it wont show anything on the screen. It would run out immediately.
> > > Regards,
> > > Suvi Joseph
> > >
www.sssoftwares.com> >
> >
> > Vijayendran S
>
> Can you post the code you are using?
> Regards,
> Suvi Joseph
>
www.sssoftwares.com