使用访问表单中的按钮运行模块? [英] Run a module using a button in a access form?

查看:70
本文介绍了使用访问表单中的按钮运行模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

有没有办法在访问表单中使用按钮运行模块?

提前感谢

Ismail

Hi All,
is there a way to run a module using a button in a access form?
thanks in advance
Ismail

推荐答案

你在谈论一个函数/ sub?只需将该函数放在非表单模块中,然后在按钮的On Click事件中调用该函数。
Are you talking about a function/sub? Just put the function in a non-form module and in the On Click event of the button you can Call the function.


它是一个函数。我把这个名字放在onclick上,但什么也没发生。你的意思是:非表格模块?

谢谢

Ismail
it a function. I put the name in onclick but nothing happened. what do you mean by: non form module?
thanks
Ismail


你能发布你用过的代码吗?


表单模块是保存表单所有代码的地方。表单模块中的函数不能在表单外部调用。


非表单模块是未绑定到表单的任何模块。这里有点用词不当。我应该使用绑定和未绑定的模块,因为这同样适用于报告。可以从同一项目中的其他模块调用未绑定模块中的任何函数。


要调用函数,请使用Call FunctionName(Arguments)
Can you post the code you used?

A form module is the place where all the code tied to a form is held. A function in a form module can not be called outside of the form.

A non-form module is any module not bound to a form. A bit of a misnomer here. I should be using bound and unbound modules as the same applies to reports. Any function in an unbound module can be called from other modules in the same project.

To call a function, use Call FunctionName(Arguments)


这篇关于使用访问表单中的按钮运行模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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