D
datamerc
Hi,
I am creating a report in Access 2003 that will be used for invoicing
storage spaces. The format of the report in the "design view" is as
follows:
"Salutation Header" - customer address
"Detail" - line item for each storage space and fee due for that
storage space (there may be anywhere from 1 to 100 storage individual
spaces for a single customer).
"Salutation Footer" - total amount due
Each line for a storage space in the "Detail" section is formatted as:
"2006 Storage fees for space 367" "$300.00"
The trouble I run into is if a customer is overdue on a storage space,
multiple lines will need to be displayed in the "Detail" section in
order to invoice for prior years. For example, if the last year paid
for space 367 was 2003 and space 253 was paid in 2005, this is what it
should be displayed on this customer's report:
"2006 Storage fees for space 253" "$400.00"
"2004 Storage fees for space 367" "$300.00"
"2005 Storage fees for space 367" "$300.00"
"2006 Storage fees for space 367" "$300.00"
The recordset for this report is a query run on the "customers" and
"storage" tables. The "storage" table contains a field called
"last_year_paid" and this is how the report should determine how many
lines are required for a given storage space.
It is not a problem to display all the storage spaces for a single
customer, but I don't have a clue as to how I can get multiple lines
for a single space to be displayed. Can anyone help me figure out how
to get multiple lines to display (as necessary) for a single storage
space, as shown in the above example. Thank you in advance!
David
I am creating a report in Access 2003 that will be used for invoicing
storage spaces. The format of the report in the "design view" is as
follows:
"Salutation Header" - customer address
"Detail" - line item for each storage space and fee due for that
storage space (there may be anywhere from 1 to 100 storage individual
spaces for a single customer).
"Salutation Footer" - total amount due
Each line for a storage space in the "Detail" section is formatted as:
"2006 Storage fees for space 367" "$300.00"
The trouble I run into is if a customer is overdue on a storage space,
multiple lines will need to be displayed in the "Detail" section in
order to invoice for prior years. For example, if the last year paid
for space 367 was 2003 and space 253 was paid in 2005, this is what it
should be displayed on this customer's report:
"2006 Storage fees for space 253" "$400.00"
"2004 Storage fees for space 367" "$300.00"
"2005 Storage fees for space 367" "$300.00"
"2006 Storage fees for space 367" "$300.00"
The recordset for this report is a query run on the "customers" and
"storage" tables. The "storage" table contains a field called
"last_year_paid" and this is how the report should determine how many
lines are required for a given storage space.
It is not a problem to display all the storage spaces for a single
customer, but I don't have a clue as to how I can get multiple lines
for a single space to be displayed. Can anyone help me figure out how
to get multiple lines to display (as necessary) for a single storage
space, as shown in the above example. Thank you in advance!
David