添加或保存任何数据时,窗体关闭 [英] form closes when any data is added or saved

查看:91
本文介绍了添加或保存任何数据时,窗体关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个在其中创建客户主数据的应用程序.当我添加客户并单击保存"按钮并保存了数据但客户主数据表格已关闭....为什么会这样?

there is an application in which customer master is created.. and when i add customer and click on save button and data is saved but the customer master form is closed....why this happens?

推荐答案

因为您的代码告诉了它.您需要发布代码以寻求帮助,您认为我们是千里眼吗?

如果数据已保存,则检查诸如按回车时关闭所按表格的按钮,一些错误陷阱以关闭表格等之类的事情.我的押注是在按钮上,而您正在按"enter"(输入)要保存数据,将运行该代码,然后按下按钮并关闭表单.
Because your code tells it to. You need to post code to expect help, did you think we were clairvoyant ?

If the data is saved, then check things like a button that closes the form being pressed when you press return, some error trapping that closes the form, etc. My bet is on a button and you''re pressing ''enter'' to save data, that code runs, then the button is pressed and the form closes.


这篇关于添加或保存任何数据时,窗体关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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