打开Dialog过滤器问题?

问题描述:

我的数据库代码在我的服务器和一台笔记本电脑上运行,但在其他两台笔记本电脑上无法正常运行,所有四个系统都运行Vista Business和MSaccess 2007.代码设置为在打开的对话框文件名中显示文件路径框,用户点击表单上的按钮,弹出打开的对话框,用户只需按Enter键打开文件(弹出对话框的唯一原因是用户想要打开另一个文件)因为文件路径已被选中。这适用于2台不同的计算机,一台服务器和一台机架。我的问题是,在另外两台独立计算机上,只打开文件夹路径,用户必须手动搜索多个文件。我假设它是某种类型的过滤器设置...但是会导致这种情况?即使在两台不起作用的计算机上,文件名路径也是正确的,它没有进入打开的对话框屏幕中的文件名框。


Brian

My database code works on my server and one laptop, but does not function correctly on two other laptops, all four systems run Vista Business and MSaccess 2007. The code is set up to display the file path in the open dialog file name box, that way the user clicks a button on a form, the open dialog box pops up, and the user just hits enter to open the file (the only reason the dialog box pops up is if the user wants to open a different file) since the file path is already selected. This works on 2 different computers, a server and a stand alone. My problem is that on two other stand alone computers, only the folder path is opened, and the user has to search through many files manually. I am assuming it is some type of a filter setting somewhere...but what would cause this? Even on the two computers that do not work, the filename path is correct, it isn''t making it to the file name box in the open dialog screen.

Brian

刚开始,您使用的代码是什么?
Just for a start, what is the code you''re using?


ChipR,


以下是我正在使用的示例...几乎如果有一个与该记录关联的文件,打开该文件路径......它在我的两台计算机上工作得很好,但另外两台2,只打开文件夹路径...我必须通过大量文件手动搜索...

ChipR,

Here is a sample of what I''m using...pretty much if there is a file associated with the record, open that file path...it works great on 2 of my computers but the other 2, only the folder path is opened...and I have to search manually through a lot of files...

展开 | 选择 | 换行 | 行号


我不知道什么版本的Access你正在使用,但2003年的参考文献说不支持msoFileDialogOpen。也许试试:
I''m not sure what version of Access you''re using, but the 2003 reference says that msoFileDialogOpen is not supported. Maybe try:
展开 | 选择 | Wrap | 行号