在Access 2007中使用窗体上的按钮打开一个外部文件 [英] Open an external file with a button on a form in Access 2007

查看:463
本文介绍了在Access 2007中使用窗体上的按钮打开一个外部文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的部队(我在军队中)创建一个数据库,我需要一个按钮,单击该按钮即可启动文件.该文件是一个.xfdl文件,用于一个名为PureEdge的程序中的军事表格.这可能吗,我将如何去做.我已经尽我所能搜索了它,但看来我的Google-Fu让我失望了.

I am creating a database for my Unit (I am in the Army) and I need a button that will launch a file when clicked. The file is a .xfdl file used for military forms in a program called PureEdge. Is this possible and how would I go about doing it. I have searched it as much as I know how, but it seems that my Google-Fu is failing me.

感谢您的帮助.

推荐答案

如果文件类型与程序相关联,即单击该文件将启动,然后

If the file type is associated with the program, that is, the file will launch when clicked, then FollowHyperlink may suit, otherwise, you may need to use Shell. For example:

Call Shell("""C:\Program Files\Microsoft Office\Office14\msaccess.exe"" ""c:\docs\db.mdb""", vbNormalFocus)

这篇关于在Access 2007中使用窗体上的按钮打开一个外部文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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