超链接到文件夹,而不是文件 [英] Hyperlinking to a folder, not a file

查看:113
本文介绍了超链接到文件夹,而不是文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道是否可以创建一个打开文件夹(在Windows资源管理器或我的电脑中)而不是特定文件文档的命令按钮?如果是这样,怎么样?我有一个用户团队只想要一个从Access记录到服务器上的文件夹的超链接,其中包含一组与记录相关的文件,而不是创建一个到每个文件的单独链接。


我在Access 2000工作。


Angi

Does anyone know if it''s possible to create a command button that opens a folder (in Windows Explorer or My Computer) rather than a specific file document? If so, how? I have a team of users that just wants a hyperlink from an Access record to a folder on the server containing a group of files related to the record, rather than creating an individual link to each file.

I''m working in Access 2000.

Angi

推荐答案

不确定或超链接是否接受文件夹,但我个人将路径存储在记录中的一个字段中,并使用一个按钮激活窗口中的文件夹弹出菜单,以允许用户从树状视图中选择他从资源管理器中使用的文件夹。

Not sure or a hyperlink will accept a folder, but personally I store the Path in a field in a record and use a button that activates a folder popup menu from windows to allow the user to select the folder from a treeview like (s)he''s used from the explorer.

展开 | 选择 < span class =codeDivider> | Wrap | 行号



不确定或超链接将接受文件夹,但我个人将Path存储在记录的字段中,并使用一个按钮激活Windows中的文件夹弹出菜单,以允许用户从树视图中选择文件夹,如他从资源管理器中使用。
Not sure or a hyperlink will accept a folder, but personally I store the Path in a field in a record and use a button that activates a folder popup menu from windows to allow the user to select the folder from a treeview like (s)he''s used from the explorer.



嗯,代码远远超出我的范围,但是我把它全部放进去了,它起作用了。惊人。


至少部分有效。据我了解,我应该能够进入记录,单击btnGetFolder并浏览一个文件夹,然后单击确定,该路径应存储在我的表中名为ExportFolder的字段中,该字段也是控制我的表格。然后,我假设,下次我点击此记录中的按钮,它应该直接打开浏览器到该文件夹​​(?)。现在我打开浏览框,按照所选文件夹的路径,点击确定,浏览框就会消失。然后,当我再次单击该按钮时,框出现,我开始回来。如何让它存储我选择的路径?


此外,当它完全正常工作时,它是否只保存路径,以便用户可以看到文件夹的位置,但必须到外面访问资源管理器才能到达文件夹和他们正在寻找的文件 - 或者用户是否可以打开文件夹并在那里打开文件夹中的文件?


谢谢,
Angi

Well, the code is way beyond me, but I put it all in, and it worked. Amazing.

At least it partly worked. As I understand it, I should be able to go into the record, click the btnGetFolder and browse for a folder, then click "OK", and that path should be stored in a field in my table called ExportFolder that''s also a control on my form. Then, I''m assuming, next time I click the button in this record, it should open the browser directly to that folder (?). Right now I open the browse box, follow the path to my selected folder, click "OK", and the browse box just goes away. Then when I click the button again, the box comes up and I start back at the beginning. How do I get it to store my selected path?

Also, when this is fully working, will it just save the path so that a user can see where the folder is but then has to go outside Access to Explorer to get to the folder and the files they''re looking for -- or will it be possible for the user to open the folder and open documents within the folder from right there?

Thanks,
Angi


我只是用它来允许用户导航到一个文件夹。

在我的应用程序中,我然后执行一些代码来填充一个带有文件夹文件的表格,并在子表单中显示。

该(临时)表格可以与YesNo字段一起使用,以允许选择文件。

获取文件函数的代码是:
I just use this to allow the user to navigate to a folder.
In my application I then execute some code to fill a table with the files of the folder and show that in a subform.
That (temp) table could be used with a YesNo field to allow for file(s) selection.

The code for the get files function is:
展开 | 选择 | Wrap | 行号


这篇关于超链接到文件夹,而不是文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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