XwBrendanXw
Programmer
Hi,
I'm currently developing an application in Microsoft Access 2000, and I've run into a bit of a problem.
I have a Report which I am using to generate weekly invoices, rptInvoice. The invoices are generated for each Friday, listing all items from the previous Saturday up to and including the Friday. The invoice is dated on the Friday, and the due date is Friday of the next week.
Each invoice is numbered, with invoice #1 dated 18 Feb 2005, invoice #2 the friday after that (25 Feb 05) etc.
I've worked out how when you open the report, to work out which invoice number we are up to, find the invoice date and the due date. However, this code is placed on the Report. What I want it to do is have code on a Form, where you enter the invoice number in a text box, then when you click the button it works out the dates (using code I already have), opens the report, searching only for items within the correct date range (week up to the Invoice date), then (this is the part I'm having trouble with) change the value of text boxes (or labels) on the invoice Report to the invoice date, due date and invoice number.
So what I'm basically asking is, after I've opened a report via a command button on a form, how can I change the values of text boxes/labels on that report?
I'm guessing this is probably very easy, but I haven't done much of this stuff in Access before
Thanks in advance,
Brendan
I'm currently developing an application in Microsoft Access 2000, and I've run into a bit of a problem.
I have a Report which I am using to generate weekly invoices, rptInvoice. The invoices are generated for each Friday, listing all items from the previous Saturday up to and including the Friday. The invoice is dated on the Friday, and the due date is Friday of the next week.
Each invoice is numbered, with invoice #1 dated 18 Feb 2005, invoice #2 the friday after that (25 Feb 05) etc.
I've worked out how when you open the report, to work out which invoice number we are up to, find the invoice date and the due date. However, this code is placed on the Report. What I want it to do is have code on a Form, where you enter the invoice number in a text box, then when you click the button it works out the dates (using code I already have), opens the report, searching only for items within the correct date range (week up to the Invoice date), then (this is the part I'm having trouble with) change the value of text boxes (or labels) on the invoice Report to the invoice date, due date and invoice number.
So what I'm basically asking is, after I've opened a report via a command button on a form, how can I change the values of text boxes/labels on that report?
I'm guessing this is probably very easy, but I haven't done much of this stuff in Access before
Thanks in advance,
Brendan