M
Moe
I have a form, with a subform, to enter payments for invoices. Main form has
customerID and InvoiceID fields (and some other fields) and subform has the
payment information fields to be saved in the "Payments" Table. My subform
and main forms are related through the "InvoiceID" and "CustomerID" fields.
The subform is built on a query that has columns "InvoiceID" and "CustomerID"
from "Invoices" table and some other columns from "Payments" table. The main
form query is partialy built from the same "Invoices" table. Both queries
have the same values in the "invoiceID" and "CustomerID' columns. However,
the "Payments" table remains blank and when I try to add values to the fields
of the subform I get an error that "Primary key can not be null." Looks like
the subform query does not pass the "OrderID" and "CustomerID" values to the
"Payments" table. How can I solve this problem?
customerID and InvoiceID fields (and some other fields) and subform has the
payment information fields to be saved in the "Payments" Table. My subform
and main forms are related through the "InvoiceID" and "CustomerID" fields.
The subform is built on a query that has columns "InvoiceID" and "CustomerID"
from "Invoices" table and some other columns from "Payments" table. The main
form query is partialy built from the same "Invoices" table. Both queries
have the same values in the "invoiceID" and "CustomerID' columns. However,
the "Payments" table remains blank and when I try to add values to the fields
of the subform I get an error that "Primary key can not be null." Looks like
the subform query does not pass the "OrderID" and "CustomerID" values to the
"Payments" table. How can I solve this problem?