See Below ....
Steve
(e-mail address removed)
Barry A&P said:
I am looking for help mimicking a form that was previously created with
excel. i want to create a block in a report wich may possibly be a sub
report that will stay the same size and add blank lines to any additional
space below the data being displayed so that users can Hand write
additional
entries once the form is printed..
I would like the access populated rows to "Grow" and Wrap text to fit the
reports width. but the following blank lines to be something like 20pt or
1/4"
Any help would be greatly appreciated
Thanks
Barry
Creating Blank Lines In A Report
Blank line items are needed in reports such as Purchase orders and Invoices
to give the area below the last detail and the top of the Report Header the
same appearance as the filled-in line items. This can be done by creating a
Table2 containing whatever the number of blank rows it takes to fill the
detail section of the report and an Union Query combining Table1 and Table2.
The example below shows a simple report using this technique.
Table1
AID A A1 A2
1
$1
11
Text1
2
$2
12
Text2
3
$3
13
Text3
4
$4
14
Text4
5
$5
15
Text5
Table2
AROW ROW B B1 B2
1
R1
2
R2
3
R3
4
R4
5
R5
Union Query
SELECT Table1.Aid, Table1.A, Table1.A1, Table1.A2
FROM Table1
WHERE (((Table1.A1)<"14"))
UNION
SELECT Table2.Row, Table2.B, Table2.B1, Table2.B2
FROM Table2
WHERE (((Table2.AROW)<="3"));
Report
A A1 A2
$1
11
Text1
$2
12
Text2
$3
13
Text3
Note: The first Where clause in the Union Query determines which records
from Table1 will be in the report. In a Purchase Order or an Invoice, the
Where Clause would specify the POID or InvoiceID to determine which detail
records would be in the report. The second Where clause in the Union Query
determines which records from Table2 (or the number of blank line items)
will be in the report. In a Purchase Order or an Invoice, the Where Clause
is used to specify the number of blank line items. In the code, the number
of detail line items would be counted and that number would be subtracted
from the number of line items that would fit in the detail section of the
report. The calculated difference would be placed in a textbox which becomes
the criteria in the second Where clause.