troubleshooting Question

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

Avatar of greenprg
greenprgFlag for United States of America asked on
Microsoft AccessSQL
4 Comments3 Solutions671 ViewsLast Modified:
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!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros