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?

Thanks,
Ken
Ken MilamEngineerAsked:
Who is Participating?
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
0
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.

Thanks
0
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.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Ken MilamEngineerAuthor Commented:
I did....same error message.
0
Rey Obrero (Capricorn1)Commented:
try doing a compact and repair.
0
Ken MilamEngineerAuthor Commented:
Yep, tried that too a few times already.
0
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
0
Ken MilamEngineerAuthor Commented:
No - I don't have the same problem.
0
Rey Obrero (Capricorn1)Commented:
your old forms could be corrupted.
0
Rey Obrero (Capricorn1)Commented:
delete the old forms and import the new ones you created.
0

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.