T
TLC
I'm creating a basic retail invoice. I have 2 tables -
tblSales (for the bulk of the invoice, contains customer
info and such) and tblLineItems (for just the products
purchased on that invoice).
Now it's time to create the invoice form. I know I'm going
to set up a subform of tblLineItems in the main tblSales
form.
But...
I need to bind a field in tblLineItems to reflect the
current invoice number, which is an autonumber in
tblSales. It obviously doesn't need to show up on the
subform, but I need it to tie the tables together.
How do I create a field on my subform that will capture
the value in my main form and populate the table with it?
Furthermore, my relationship between the 2 tables is going
to be the invoice number, but it's an autonumber on
tblSales. Won't this be a problem since it won't be an
autonumber data type in tblLineItems?
Small, easy to understand words would be appreciated -
thanks!
tblSales (for the bulk of the invoice, contains customer
info and such) and tblLineItems (for just the products
purchased on that invoice).
Now it's time to create the invoice form. I know I'm going
to set up a subform of tblLineItems in the main tblSales
form.
But...
I need to bind a field in tblLineItems to reflect the
current invoice number, which is an autonumber in
tblSales. It obviously doesn't need to show up on the
subform, but I need it to tie the tables together.
How do I create a field on my subform that will capture
the value in my main form and populate the table with it?
Furthermore, my relationship between the 2 tables is going
to be the invoice number, but it's an autonumber on
tblSales. Won't this be a problem since it won't be an
autonumber data type in tblLineItems?
Small, easy to understand words would be appreciated -
thanks!