LinkMasterFields Property Error

G

Guest

I never had this problem before; however, I have a main form and subform
linked together. When I type in data in the first field of the subform - I
get the following error...

"The LinkMasterFields property setting has produced this error: 'The object
doesn't contain the Automation object 'Tbl_Case."

Any assistance is appreciated to alleviate this problem/error.
 
K

Ken Snell [MVP]

Open the form in design view. Click on the control that holds the subform,
then click on Properties icon on toolbar and then click on Data tab.

Post here what is in the LinkChildFields and LinkMasterFields properties.
 
G

Guest

Link Child Fields: DCFLNum
Link Master Fields: Tbl_Case.DCFLNum

I hope this helps,

Paul



Ken Snell said:
Open the form in design view. Click on the control that holds the subform,
then click on Properties icon on toolbar and then click on Data tab.

Post here what is in the LinkChildFields and LinkMasterFields properties.
 
D

Duane Hookom

Try correct what the error suggests by removing the Tbl_case from the Link
Master. All you should need is the field name.

--
Duane Hookom
MS Access MVP
--

Paul said:
Link Child Fields: DCFLNum
Link Master Fields: Tbl_Case.DCFLNum

I hope this helps,

Paul
 
K

Ken Snell [MVP]

And if that doesn't work (because you have more than one field named DCFLNum
in the subform's recordsource query), put [ ] characters around the entire
name:

[Tbl_Case.DCFLNum]

--

Ken Snell
<MS ACCESS MVP>
 
Joined
Oct 28, 2011
Messages
5
Reaction score
0
Haha wow. This problem stumped me for hours till I googled it and came to this thread. I canot believe the solution was that simple haha. What I don't understand is when the table prefix was added, or when it became a problem, in the LinkMasterFields property. I know I never put it there and all logic says it shouldn't matter if it is there or not. Sorry I just like to know things like that. If anyone knows what makes this problem appear seemingly out of nowhere I would be grateful If you could post it :D
 
Joined
Nov 25, 2011
Messages
1
Reaction score
0
This error occurs when repetitive and careless renaming of the controls creates two or more subroutines with the same name:

Private Sub controlname_Click()
empty
End Sub


Private Sub controlname_Click()
full
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top