Avatar of greenprg
greenprgFlag 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
SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
ASKER CERTIFIED SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of greenprg
greenprg
Flag of United States of America image

ASKER

Thank you for all the quick responses.
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo