get data from main form to subform

G

Guest

I have a mainform [Invoicefrm) and subform [InvoiveDetailsform]

Invoicefrm has field "Invoice#" and "InvoiceDate"
I want to set the Invoice # of the mainform to each line item of the subform.

The Link master and child fields has already been used for another
operation. is there anyway this can be done. I referenced the "Invoice#"
field on the subform to that of the mainform and it works but the data is not
passed to the underlying query.

please help
 
P

Pat Hartman\(MVP\)

The records in the subform only need the primary key of the Invoice and that
should be populated automatically by the master/child links. If InvoiceNum
(# is a poor choice in a column name) is the primary key then fix the
master/child links.
 
G

Guest

Hey Thanks very much I see where you are coming from.
After using ur suggestions. I was able to solve the situation

Pat Hartman(MVP) said:
The records in the subform only need the primary key of the Invoice and that
should be populated automatically by the master/child links. If InvoiceNum
(# is a poor choice in a column name) is the primary key then fix the
master/child links.

Levans digital said:
I have a mainform [Invoicefrm) and subform [InvoiveDetailsform]

Invoicefrm has field "Invoice#" and "InvoiceDate"
I want to set the Invoice # of the mainform to each line item of the
subform.

The Link master and child fields has already been used for another
operation. is there anyway this can be done. I referenced the "Invoice#"
field on the subform to that of the mainform and it works but the data is
not
passed to the underlying query.

please help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top