如何在打开文件命令a中输入完整文件名,访问2007 [英] How to enter the full file name in the open file command a,access 2007

查看:74
本文介绍了如何在打开文件命令a中输入完整文件名,访问2007的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从下拉列表中选择一个文件名,然后单击一个命令按钮打开所选文件

它会一直显示文件被拼写错误或不存在的消息

I Want to Select a file name from a drop down list then click a command button to open the selected file
It keeps giving a message that the file is either missspelled or does not exist

推荐答案

RNajjab,


如何为下拉列表生成文件名列表?它是否包含文件名的完整路径?请包含更详细的描述或提供您到目前为止所尝试的样本。
RNajjab,

How are you generating the list of file names for your drop down list? Does it include the full path for the file name? Please include either a more detailed description or provide a sample of what you have tried thus far.


好吧,我试图使用一个文件名存储为字符串的表,它没有工作,然后我试图在ON CLICK事件中输入文件名和完整路径,我想在构建表格之前找到方法。

Thanx
Well , I have tried to use a table with the file name stored as string , it did not work ,then i tried to enter the file name and full path into the ON CLICK event , "I wanted tocheck the method before building up the table"
Thanx


您可以使用代码从特定目录中获取您可能需要的有效文件名列表,除非您的文件名位于多个位置。 ..然后我会使用一个表并将路径/文件名存储为字符串,然后查询该表作为组合框的记录源。
You can use code to fetch a list of the valid filenames you may want from a particular directory, unless your filenames are found in vaious locations.... Then I would use a table and store the path/filename as a string, then query the table as the record source for your combo box.


这篇关于如何在打开文件命令a中输入完整文件名,访问2007的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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