This may seem like a weird scenario, but here it goes. I have a one-to-many relationship with two tables, where there may, on occasion, be no records in the many, and I want to pick up on that circumstance and print a seperate report for the user to print a report (actually a hand-fill-in form) that is based on a number of arbitary record numbers.
My example is a purchase order. The end-user, enters the po header info and then enters line-items in a form. There are occasions when the user will not be able to enter any of the line item detail, but will instead want to print out a form (report) with X number of "blank lines". The X number is queried by code and I've already handled the code to launch the correct "fill-in" report. What I'm trying to do is figure out some way of faking the detail section of the report to create blank lines (or boxes, or whatever) X records long. Any suggestions? I could populate a temporary table x records long and base the report on that, but that seems like a lame way to go about this. If I could keep it contained in simple code and leave a temporary table out of it, it would be better.
Any ideas?
My example is a purchase order. The end-user, enters the po header info and then enters line-items in a form. There are occasions when the user will not be able to enter any of the line item detail, but will instead want to print out a form (report) with X number of "blank lines". The X number is queried by code and I've already handled the code to launch the correct "fill-in" report. What I'm trying to do is figure out some way of faking the detail section of the report to create blank lines (or boxes, or whatever) X records long. Any suggestions? I could populate a temporary table x records long and base the report on that, but that seems like a lame way to go about this. If I could keep it contained in simple code and leave a temporary table out of it, it would be better.
Any ideas?