Don,
WHat I was going to suggest was...
YourInvoiceFieldNameOnYourForm = DMax("InvoiceIDField","YourInvoiceTable")
+
1
...placed on the button BUT you are now saying your look-up form is
generating a number. So now I am a little confused. If you are already
generating the number then you can pass that Invoive number to the
subforms.
So perhaps I don't need to see any button code. Though I still don't have
a
clear picture of how you are generating the Invoice number, sounds like...
1. Open Main Form
2. Press button open subform that generates number
3. Type generated Invoice number into Main Form and subforms
...is that what is happening?
--
Gina Whipp
2010 Microsoft MVP (Access)
"I feel I have been denied critical, need to know, information!" - Tremors
II
http://www.regina-whipp.com/index_files/TipList.htm
Yes I do have an Invoice table.
I think I got it.
I am using a sub form with the client lookup form that will allow for an
invoice number, date & the client id. The lookup form is generating a
number
that I type into the invoice number field on the sub form. Now I will try
and make the invoice number & date field auto generate the correct
information into the sub form.
The report (invoice) is using a query and has three sub reports inside of
its
body.
Do you want to see that query?
Or the code behind the button I click to send the report it's information?
I think the way I'm going at it with the sub form will work. I need to
test
further.
Thanks again Gina
Don
Gina said:
Don,
Does you table for Invoices have a field? Also can you copy paste the
code
you use to generate the Invoice here. If you do not have a table that
stores Invoice number and Date and the like then please describe how you
generate and Invoice.
Yes, that would be perfect.
Will the invoice number be stored into a table?
Gina said:
[quoted text clipped - 23 lines]