I am new at creating forms, and especially subforms in Access. I don't know if my problems are my relationships among my tables, or if it's really about the forms but here goes.
I have 4 main tables. Two of the tables have lookup tables. Of the four tables I have a COMPANY table that has a company name and date and a CompanyAutoID which links to an AREA table which consists of a Street name, Community name and its own AreaAuto ID. These are the two tables that have look ups for Company and Street Names respectively. Then, my AREA table is linked to a CIVIC Table that consists of civic numbers, and a CivicAutoID and links to AREA by the AREA Auto ID. The reason I have the AREA seperated from CIVIC is because I want to only have to input the Street Name once for several civic numbers. Then my CIVIC table is linked through it's CivicAuto ID to a CONTAMINANTS table which consists of various types of contaminants found in the recyclables of the homes visited. In the meantime, my COMPANY table is also related to the CONTAMINANTS table through the CompanyAuto ID.
I have created a form where the Company information and Area (Street) information will be input and then a subform with the Civic and Contaminants information together in datasheet format so that you can input the company and Street information once and then in the datasheet subform add all the civic numbers and types of contaminants found along that street. Seems like it should work but my AreaAutoID won't automatically go into the CIVIC table even though I have a relationship between the two. As I put information into my Company table and Area table in the form everything appears fine until I try to input info into the Civic table in the subform and the AreaID is not getting updated and I get a message saying I need a related field in the AREA table.
Can anyone fiqure this out???? Help please!!!!
I have 4 main tables. Two of the tables have lookup tables. Of the four tables I have a COMPANY table that has a company name and date and a CompanyAutoID which links to an AREA table which consists of a Street name, Community name and its own AreaAuto ID. These are the two tables that have look ups for Company and Street Names respectively. Then, my AREA table is linked to a CIVIC Table that consists of civic numbers, and a CivicAutoID and links to AREA by the AREA Auto ID. The reason I have the AREA seperated from CIVIC is because I want to only have to input the Street Name once for several civic numbers. Then my CIVIC table is linked through it's CivicAuto ID to a CONTAMINANTS table which consists of various types of contaminants found in the recyclables of the homes visited. In the meantime, my COMPANY table is also related to the CONTAMINANTS table through the CompanyAuto ID.
I have created a form where the Company information and Area (Street) information will be input and then a subform with the Civic and Contaminants information together in datasheet format so that you can input the company and Street information once and then in the datasheet subform add all the civic numbers and types of contaminants found along that street. Seems like it should work but my AreaAutoID won't automatically go into the CIVIC table even though I have a relationship between the two. As I put information into my Company table and Area table in the form everything appears fine until I try to input info into the Civic table in the subform and the AreaID is not getting updated and I get a message saying I need a related field in the AREA table.
Can anyone fiqure this out???? Help please!!!!