G
Guest
I have a report that has a similar look to an existing paper form. The paper
form has ten numbered rows of empty line items that are later filled in with
data as needed. My Access version of this report looks identical to the paper
form except that the item rows (detail section) only appear if there is data
(as expected).
Is there a way to create the report so that the ten empty rows appear but get
populated with data as needed? So that the report always shows ten rows,
either empty or with data?
I think there is a way withe VBA. If the report has 3 detail records, I
think this is the vba approach I would use (excuse my psuedo code) : -)
In the "on print" event procedure of the detail section of the report:
If the record count in the detail section is less than 10
for each field in the detail row
get the property values for the outline of each field
end
get the detail record count
subtract detail record count from 10
while count is less than the computed count
for each field in the row
draw each field outline
end
end
end
Is this the right approach or is there an easier way to do this?
Anyone have code to share?
Thanks in advance
form has ten numbered rows of empty line items that are later filled in with
data as needed. My Access version of this report looks identical to the paper
form except that the item rows (detail section) only appear if there is data
(as expected).
Is there a way to create the report so that the ten empty rows appear but get
populated with data as needed? So that the report always shows ten rows,
either empty or with data?
I think there is a way withe VBA. If the report has 3 detail records, I
think this is the vba approach I would use (excuse my psuedo code) : -)
In the "on print" event procedure of the detail section of the report:
If the record count in the detail section is less than 10
for each field in the detail row
get the property values for the outline of each field
end
get the detail record count
subtract detail record count from 10
while count is less than the computed count
for each field in the row
draw each field outline
end
end
end
Is this the right approach or is there an easier way to do this?
Anyone have code to share?
Thanks in advance