473,396 Members | 1,816 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,396 software developers and data experts.

Save Attachments to the Database

I want to save a file for a data in a Database. I'm working on a Schools Database and I want to have a command button that says "Attachments" for a particular "School". Attachments may vary from Word documents, PDF file, Excel files or Html file.

I'm thinking of using the Common Dialog controls in Access but I still don't know how to use them. Can anyone send me the code.
Aug 26 '06 #1
5 9283
PEB
1,418 Expert 1GB
Hi,

Do you want to Save those attachements in the database or not? I understand that You would like to do this.

In this case our Access database will grow very fast espesially if your documents are big files! I have one database in which I store only bitmaps, one table with bitmaps... And it's very heavy database! I've done it because I want to visualize my bitmaps in my reports using the OLE control... This is the only reason. If I wanted only to open them I'll store them in a special folder and I'll conserve in the database only the path or other specifications of those files...

To have such different objects in your database may slow down everything! Be carefull

Have a nice day!
Sep 2 '06 #2
I do not want it to be saved or attached to the database file, I wanted it to be saved in another folder or in the same location as the .mdb file. Yes, you're right the database would become too big if it is saved in the database file as a data in a table. I only want to save the link to the file, the file could be anything like word document, jpg files, excel files, or html files.
Sep 2 '06 #3
PEB
1,418 Expert 1GB
Reelly I've never saved hyperlinks in the database but it is very interesting to do it... It's very interesting and usefull!

I'm also searching how to do it... The results I'll post here...

For the moment I've seen:

Hyperlink Text or combinations of text and numbers stored as text and used as a hyperlink address. A hyperlink address can have up to three parts:
text to display — the text that appears in a field or control.

address — the path to a file (UNC path) or page (URL).

subaddress — a location within the file or page.

screentip — the text displayed as a tooltip.

The easiest way to insert a hyperlink address in a field or control is to click Hyperlink on the Insert menu.
Each part of the three parts of a Hyperlink data type can contain up to 2048 characters
Sep 2 '06 #4
PEB
1,418 Expert 1GB
If you don't want to insert the hyperlinks programatically you can use the command in Access that does it!

If not I'll continue to search for programatically ways to do it!
Sep 2 '06 #5
PEB
1,418 Expert 1GB
OOOUUAUU!!!!
When you create a field of type Hyperlink every text entered manually is considered as hyperlink!

When you enter D:\ it opens Explorer and D Drive
When you enter D:\temp1.xls it opens Excel with the suitable file!

And about the 3 parts of the hyperlink:
hyperlink only with 1 part in mode edition:
#D:\Temp1.xls#
hyperlink with 2-3 parts in mode edition:
google.com#http://google.com#
D:\TEMP.XLS#D:\TEMP.XLS##happy birthday to you

AND usually in your field you have the first part of the hyperlink! If you want to treat the hyperlink with string functions only the first part can be treated using queries! Using code it's a bit different! :)

But this is a very good way to work with documents concerning the respective record :)
Sep 2 '06 #6

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

Similar topics

1
by: Karen Grube | last post by:
Hi! I hate to bother you all with this, but I don't know how best to approach a particular task. Here's the deal: Once a month I personally (that is, in my own personal inbox on my...
2
by: will | last post by:
hi, my ISP doesn't have webmail service, so i use TcpClient & Friends to issue POP3 commands to retrieve emails, store data on a website, and use that website to view emails. it all works...
8
by: Stephen Miller | last post by:
I have used the following code to create and send an email using the MailMessage Constructor: '-- Imports System.Web.Mail Dim oMail As New MailMessage() With oMail .From = "from@this.com" .To...
0
by: fish | last post by:
Hi, I have a VB.net application that will save attachments to a directory on my local pc. I need to run this component on our exchange 2003 server and also save the attachments to a local DIR. ...
5
by: Jozef | last post by:
Hello, I have an Access XP database that has attachments to a BE database that has a password. The attachments work fine, until I run some code that modifies a BE table (adding a field). I do...
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...
1
by: mike11d11 | last post by:
If someone could help me, I need to be able to send attachments from my access database that I have created. This database runs queries then generates a report off the queries from underlying...
4
by: sonja.chevre | last post by:
Hello ! I'm looking for a script which allows me to read emails and attachment from a pop server (then I'll save the email's text in a db and the attachments on the server). So I have found...
1
by: santosh singh | last post by:
for mobile browser i used the following code : Response.ContentType = "application/vnd.wap.xhtml+xml"; Response.AppendHeader("Content-Disposition","attachment; filename=SailBig.jpg");...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.