MS Access Form/SubForm

Hi, I am receiving a message on a few of my forms that contain subforms.  The error message that pops us when I first open the forms reads: you must specify the same number of fields when you set the linkchildfields and linkmaster fields properties.

In all cases, I have a field name specified within the form's property page, and in most instances I have established one to many relationships for the form/subforms associated tables.  Here's an example:  

Form Name:  Material
SubForm Name:  MaterialLot
Linked field:  MaterialID
MS Access 2014

Can you provide me with some direction to resolve this problem?

Ken MilamEngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
open the main form in design view
click on the Subform control (this is the control that housed your subform "MaterialLot")

hit F4
in the property window that open select the Data tab
you will see the properties

Link Master  fields    MaterialID
Link Child  fields       MaterialID

this is where you will enter the Link fields
Ken MilamEngineerAuthor Commented:
Thanks for the reply, Rey.  I previously entered the information in the property window before submitting my question to EE, and it appears exactly as you typed it above.

Rey Obrero (Capricorn1)Commented:
from the error message, it looks like you have entered more than one field in  one of the Links property.

try removing the entry and recreate it using the wizard, by clicking on the (...)  at the end of the row.
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Ken MilamEngineerAuthor Commented:
I did....same error message.
Rey Obrero (Capricorn1)Commented:
try doing a compact and repair.
Ken MilamEngineerAuthor Commented:
Yep, tried that too a few times already.
Rey Obrero (Capricorn1)Commented:
create a new db.
import the two tables.
set the relationships
then create two new forms the Main form and the subform, use the wizard and see if you still get the same problem.

refer to this link
Ken MilamEngineerAuthor Commented:
No - I don't have the same problem.
Rey Obrero (Capricorn1)Commented:
your old forms could be corrupted.
Rey Obrero (Capricorn1)Commented:
delete the old forms and import the new ones you created.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.