未设置对象变量或带有块变量的对象-Access 2013 [英] Object variable or with block variable not set - Access 2013

查看:52
本文介绍了未设置对象变量或带有块变量的对象-Access 2013的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请按此处查看可以更好地理解我的问题的gif.

正如您在上面看到的那样,这有点问题,但是我不知道该怎么办,所以我希望你们中的一些人可以告诉我该怎么办以及如何去做.这是我第一次看到此对象变量或未设置块变量"问题...

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...

我没有任何代码可以显示给您,因为我使用的是默认方式来制作绑定文本框,然后使用带有大量子窗体的子窗体. (有关布局的想法,请参见gif)

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...

如果您有疑问,它将在Access 2013中使用.

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

嗯...如果有任何疑问,请立即提问.

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

推荐答案

因此,子窗体中有一个子窗体,并且在尝试设置将其链接到其父窗体的最里面的子窗体的属性时会收到错误消息(我将其称为中间子表单.

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/表格/subform/master-link-fields.asp

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

这篇关于未设置对象变量或带有块变量的对象-Access 2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆