从SubForm打开表格 [英] Opening Form from SubForm
本文介绍了从SubForm打开表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我有一个CustomerF表单,其中包含一个显示所有系统的子表单。我点击它时可以打开与子表单关联的表单
So I have a CustomerF form with a subform that shows all of the systems. I am able to open the form associated with the subform when I click on it with
Private Sub Text3_Click()
Private Sub Text3_Click()
推荐答案
更改行:
如果Me.SystemsID = Null则为
至:
如果IsNull(Me.SystemsID)然后是
Null不是值但是没有值,所以不能"等于"任何东西,甚至是Null。  ;结果将始终为Null,既不是True也不是False。
Change the line:
If Me.SystemsID = Null Then
to:
If IsNull(Me.SystemsID) Then
Null is not a value but the absence of a value, so cannot be 'equal to' anything, even to Null. The result will always be Null, neither True nor False.
这篇关于从SubForm打开表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文