I am getting error message while entering data using a sub form. Here are the details of the tables associated with this form. Basically I am trying to enter expense data.
tblECHO has these fields
- ECHOID Pk (auto)
-
EchoNo Text
-
SubmitDate Date/Time
-
ReceiveDt Date/ Time
tblMTAP - MTAPID PK (auto)
-
VendorID Number
-
AccountID Number
-
GrantFundID Number
-
GrantID Text
-
ProjectID Number
-
MTAPAmount Currency
tblSPAP - SPAPID PK (auto)
-
VendorID Number
-
AccountID Number
-
GrantFundID Number
-
GrantID Text
-
ProjectID Number
-
SPAPAmount Currency
The main form is based on
tblECHO which has a two-page sub form that is based on
tblMTAP and
tblSPAP. As I enter data for expenses I am getting an error message
Primary Key or indexed field cannot contain a null value
.
Well, I find out that as data is entered its updating all the primary keys except for
MTAPID and
SPAPID
Both the tables are related to
tblECHO (join type 1, one to many). What can be wrong? How do I fix it?
Thanks for your help.