如何关闭开放表格? [英] How do I close an open form?

查看:95
本文介绍了如何关闭开放表格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个小表格:


1.接受一个新的主键(图表编号)(这是表格上唯一的字段),
2.使用此主键添加新记录,

3.打开主表单,然后

4.关闭自己


到目前为止,它做1到3,但不做4,并且还给了我一个错误,说在以下代码的第12行有一个操作符丢失:

I have a little form that I want to:

1. accept a new primary key (chart number) (this is the only field on the form),
2. add a new record with this primary key,
3. open the main form, and
4. close itself

So far, it does 1 through 3, but doesn''t do 4, and also gives me an error, saying that there''s an operator missing on line 12 of the following code:

展开 | 选择 | Wrap | 行号

推荐答案

看起来你评价了关闭第10行的表格。这是故意的吗?
It looks like you commented out closing the form on line 10. Was this on purpose?


我得到了类型不匹配在那条线上,我甚至不确定这个关闭是什么命令将尝试关闭。
I got a "type mismatch" on that line, and I wasn''t even sure what this "Close" command was going to attempt to close.


这是DoCmd.Close方法上的MSDN链接。你得到的类型不匹配,因为你发送的字符串需要一个AcObjectType。

http://msdn.microsoft.com/en-us/libr...ffice.12).aspx
Here is the MSDN link on the DoCmd.Close method. You got the type mismatch because you are sending a string where it expects an AcObjectType.

http://msdn.microsoft.com/en-us/libr...ffice.12).aspx


这篇关于如何关闭开放表格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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