473,385 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
2 1559
kepston
97 Expert
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
jutz
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

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

Similar topics

0
by: beau | last post by:
Please help me ! Anybody can help me with a code to embed an ms word file into an access table ? I have ms word templates with bookmarks in my hard disk. So far I can open the template...
0
by: beau | last post by:
Re. Embed or save ms word into OLE field Please help me ! Anybody can help me with a code to embed an ms word file into an access table ? I have ms word templates with bookmarks in my hard...
1
by: grzybek | last post by:
Hi, I have question about techniques of using files in SQL Server in Web Application. Assuming that I send files from my Web App ( client ) to server and located these files on hard disk ( on...
1
by: grzybek | last post by:
Hi, I have question about techniques of using files in SQL Server in Web Application. Assuming that I send files from my Web App ( client ) to server and located these files on hard disk ( on...
4
by: Hrvoje Vrbanc | last post by:
I would like to know the most efficient way to copy an image from an Internet URL to the local hard disk by means of using an ASP.NET page. So, I would like to click the button on the ASP.NET...
2
by: Jon | last post by:
I have a sql table that hold binary files as blobs. Our customers store attachments for their work orders in them, anything from xml files to zip files. Normally, these files first exist on the...
6
by: (PeteCresswell) | last post by:
User wants to go this route instead of storing pointers in the DB and the documents outside. Only time I tried it was with only MS Word docs - and that was a loooong time ago - and it seemed to...
4
by: kev | last post by:
Hi folks, I have created a database to store information on equipments. During the first level of registration, there is a form that i need the user to fill up details on the equipment testing....
3
by: evenlater | last post by:
I have an Access application on a terminal server. Sometimes my users need to export reports to pdf, rtf or xls files and save them to their own client device hard drives. They can do that right...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.