Avatar of greenprg
greenprg
Flag for United States of America asked on

Access 2007 - table relationships not working - "too many fields defined" error

I have a split Access database, front end and back end with only data tables in the back end.  Forms, reports, queries, and a few tables for temporary data manipulation in the front end.  The database was working fine until I started testing new code for the next release.  

For the latest enhancement to the database, I needed to add a text field to the parent table.  The parent table has a child and there are 6 other tables related to the child.  After adding the new field to the parent table, a form that uses all 8 of these tables gives the error "too many fields defined" on the DoCmd.OpenForm line.

When I look at the form in Design mode, all the bound fields have the upper left corner marked in green.  The Field List says "No fields available to be added to the current view."  When I go back into the parent table and remove the new text field, the form works again and all the related tables show up in the Field List again.

All my table relationships are defined in the front end.  The back end with data tables does not have any relationships defined between these tables.

The parent table has 35 fields.  The new text field would be the 36th field. 4 of my other tables have more than 35 fields, one of them has about 60 fields.

What am I doing wrong?  I tried wiping out all the relationships in the graphical tool which didn't make a difference.  The recordsource for the form was saved as

SELECT AssessmentTable.*, CRNTable.*, EstimateOther.*, EstimateProcess.*, EstimateTool.*, EstimateQuality.*, EstimateRecurring.* FROM (((((CRNTable INNER JOIN AssessmentTable ON CRNTable.CRNNumber=AssessmentTable.DAFNo) INNER JOIN EstimateOther ON AssessmentTable.ICNNumber=EstimateOther.ICNNumber) INNER JOIN EstimateProcess ON AssessmentTable.ICNNumber=EstimateProcess.ICNNumber) INNER JOIN EstimateTool ON AssessmentTable.ICNNumber=EstimateTool.ICNNumber) INNER JOIN EstimateQuality ON AssessmentTable.ICNNumber=EstimateQuality.ICNNumber) INNER JOIN EstimateRecurring ON AssessmentTable.ICNNumber=EstimateRecurring.ICNNumber;

CRNTable is the parent table
AssessmentTable is the child - parent/child relationship is 1 to Many
The 6 tables beginning with Estimate are the other tables related to the AssessementTable 1:1

When I remove the recordsouce in addition to wiping all the table relationships in the graphical tool, no more green corners on fields but it also does not pull in the data.  As soon as I save the record source to the above again, it does not work until I remove the new text field from the parent table.

Please help.  Thank you!
Helen
Microsoft AccessSQL

Avatar of undefined
Last Comment
greenprg

8/22/2022 - Mon
SOLUTION
Patrick Matthews

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Francis Omoruto

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
greenprg

ASKER
Thank you for all the quick responses.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23