访问 - 返回上一个表单 [英] Access - Return to previous form

查看:78
本文介绍了访问 - 返回上一个表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

在我的项目中打开表单时,前一个表单已关闭..

所以我想制作一个按钮,让我回到原来的状态表单并关闭打开的表单


示例:FormA打开比我单击打开FormB的按钮并关闭FormA现在我点击了Previous将我带回FormA并关闭FormB的按钮


我需要这样做因为我没有时间制作大量的宏

Hello guys.
In my project when I open a form the previous form is closed..
So I want to make a button that returns me to the previous form and closing the opened form

Example: FormA is open than I clicked a button that opened FormB and closed FormA now I clicked the "Previous" button that brought me back to FormA and closed FormB

I need to make this because I don''t have time of making alot of macros

推荐答案

打开表单时,在OpenArgs参数中传递上一个表单名称。然后,您可以在当前表单上使用OpenArgs打开上一个表单。
Pass the previous form name in the OpenArgs parameter when you open the form. Then you can use OpenArgs on the current form to open the previous form.


一个好主意是在用于打开另一个表单时隐藏表单。调用表单被隐藏而不是关闭允许被调用的表单完全返回到它。


使用 OpenArgs 的替代方法是使用< a href =http://bytes.com/topic/access/insights/615607-cascading-formstarget =_ blank>层叠表单。
A good idea is to hide forms when they are used to open another form. The calling form being hidden instead of closed allows the called form to return to it exactly as it was left.

An alternative to using OpenArgs is to use Cascading Forms.


@Rabbit你能解释一下吗?因为我对VBA不是很好..
@Rabbit Can you explain more? Cause I''m not very good with VBA so..


这篇关于访问 - 返回上一个表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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