By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,649 Members | 696 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,649 IT Pros & Developers. It's quick & easy.

save files from the hard disk into a table in the database

P: 6
hi,

Please help me how to do this:

I have 3 controls:
textbox - txtFile
command button - cmdSearch
command button - cmdSave

How will I make cmdSearch display (when clicked) a file browser where the contents of my hard drive will be displayed and users will be able to select which file to save. Once the file is selected, the file name (and path) will be displayed on txtFile. Then, when I click cmdSave, I want the file selected to be stored in a table in the database as an ole object. Please help.

Thanks in advance. =)
May 8 '07 #1
Share this Question
Share on Google+
2 Replies


Expert
P: 97
hi,

Please help me how to do this:

I have 3 controls:
textbox - txtFile
command button - cmdSearch
command button - cmdSave

How will I make cmdSearch display (when clicked) a file browser where the contents of my hard drive will be displayed and users will be able to select which file to save. Once the file is selected, the file name (and path) will be displayed on txtFile. Then, when I click cmdSave, I want the file selected to be stored in a table in the database as an ole object. Please help.

Thanks in advance. =)
You can use Application.FileDialog to provide a dialog box for your user.
If you read the Help files they will tell you about all the different properties, you should then be able to store the file name.

I'm not sure about OLE objects, but I think you can use the txtFile value to link to the file - the field will have to be OLE type
May 8 '07 #2

P: 6
You can use Application.FileDialog to provide a dialog box for your user.
If you read the Help files they will tell you about all the different properties, you should then be able to store the file name.

I'm not sure about OLE objects, but I think you can use the txtFile value to link to the file - the field will have to be OLE type
thanks! =)
May 9 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.