Object variable or with block variable not set - Access 2013

*爱你&永不变心* 提交于 2019-12-24 13:49:46

问题


Please press here to see my gif that could provide a better understanding of my problem.

As you can see above that it's kinda a problem, but I don't know what to do, so I am hoping that some of you could tell me what and how to do with this. It's my first time to see this " Object variable or With block variable not set" problem...

I don't have any code to show you because I was using the default way to make bound textbox and then using a subform with lots of subform. (See the gif for the idea of the layout)

It's in danish language, but I think this should be a common problem as everywhere in the world, so...

It's in access 2013, in case you was asking.

uhm... If there're any questions, please ask right away.


回答1:


So you have a subform within a subform and you are receiving an error when trying to set the properties of the innermost subform that link it to it's parent form (which I will refer to as the middle subform).

Here's a thought. Try opening the "middle subform" in the designer (ie do not open the main form, just the middle subform from the navigation panel). then set the properties. This has a better chance of working.

Here's some references I used for inspiration, the first of which stresses the fact that the linked "fields" are actually EITHER control names OR field names from the dataset and why it is often best to use control names.

http://www.fmsinc.com/microsoftaccess/forms/subform/master-link-fields.asp

http://access.mvps.org/access/forms/frm0031.htm



来源:https://stackoverflow.com/questions/32986921/object-variable-or-with-block-variable-not-set-access-2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!