Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attaching a file in Access 1

Status
Not open for further replies.

napa1m

Programmer
Jul 24, 2000
39
TH
Hi, and thanks in advance for any replies/responses.

I would like to attach a file in Access, but don't know how to code it. Basically, this is what I would like to happen:
1. The user would click on a button.
2. A "Locate File" prompt would open and the user would locate the file on one of the drives
(exactly like the one used in Internet Explorer to "Open" a file, for example).
3. On the click of "OK", the database would automatically Copy the File, Paste it in a subdirectory of the database
(Ie. C:\(Database Path)\Attached Files),
and make a reference to the file in a table.

I hope you understand what I mean...
...post if you dont. Napalm2000
hlechler@hotmail.com
 
This should be quite easy if you just use the FileSystem object commands.
Alternatively you could integrate these files into the table structure. There are several wizards available (JPGs, Word, Excel, Autocad...) that do this automatically. Have a look on the "powerup"-links on
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top