Topics Search

Using Update Query with Attachment Field

Using Update Query with Attachment Field
Views: 18
Creating a database to store information on clients and the documents we keep on each client. I made a big mistake and set the database up with tables for each document type with their attachments and the information we input on the document.

I had a bunch of tables connected to the client information table in 1-1 relationships so I went to combine it in one big table.

[sidenote: I read that this was horrible database design to have it spread out in tables with 1-1 relationships plus it's keeping me from inputting the information in one form because the client itself has to be inputted before I can input the documents since the document tables pull from the client name which isn't established whenI try to put it in at once.

If I'm really not that in the red with having multiple 1-1 tables then I'd love it if someone could help me make a form that would let me put in the clientinformation and the documents at once with out running into the issue of the form not knowing to create new records in the document tables with the name of the client automatically in there]That's where I'm hitting my issue;

I've been using an update query to move over the text/date/number information from the documents tables to the new master table but it won't let me transfer the attachments I've attached because it's considered a multi-value field.

We've already populated the thing and so it would really suck to have to go through by hand and re-attach the thousands of documents.
Sponsored Links:

Similar posts...


Updating records with attachment fields

Updating records with attachment fields Icon
I maintain a 9 year old database which I recently converted to Access 2007. While doing so, an attachment field was added to one of the tables.
My problem: I recently gathered some data in the attachment fields in the development copy of the database and wanted to transfer the additions to the production table. The update query came back with a message to the effect that you can't use an attachment field in an update query.
Has anyone else encountered this problem? If so, what is the workaround? VB or manual re-entry of the data

Attached Files

Attached Files Icon
I created a database with an attachment field that is working fine. But for future use, we will be using a SQL database so the attachment field, which is not supported in Microsoft SQL 2005 will become useless for our ASP.Net application. I would like to keep using the attachment filed in access, but I would like to add the actual file name to the table as well without having the user add it.

I can see the attachment FileData, FileName and Filetype when I go into query view, but when I attempt to create an update query that will take the FileName and populate the new field, I get an error that states
Enter Parameter Value with the ReportAttach.FileName below.

Does anyone know how I can get the Filename into a new field

Add an attachment to form

Add an attachment to form Icon
I am trying to add an attachment to a subform. I update the control source to say "Attachment" in the properties section which matches the name of the field in the table where it's pulling from.

When I open in form view and right-click on the text box (for attachment) the manage attachments selection is greyed out. If I go to the table I can open the attachment.

Any idea why this isnt working in the form

how to use select * from where tblFileImport.bulletin_imp.FileData Like

how to use select * from where tblFileImport.bulletin_imp.FileData Like Icon
I don't know how to do this search. I have bellow this query based on 2 tables where the second table has an attachment field. The searching should be based on the content of the attachment,for ex: if the files(that are stored in the attachment field) contain a word like "tracking" then I want to pull the attachments and their data.

Add multiple records with one field

Add multiple records with one field Icon
Please find attached my form, the "Slide" field is of type attachment. This field usually has min 5 attachments, is there a way that a record can be made for each attachment added, the Start and End Date will be the same for every attachment.

Can someone please help, it takes a long time to add each attachment seperately.

Updates to Attachment doesn't trigger After Update macro

Updates to Attachment doesn't trigger After Update macro Icon
I want to save all information from a table row into a historyTable when an update is made to it (to be able to view the history of the table).
However the table contain one field of data type Attachment and changes to this field doesn't seen to trigger the After Update macro.

How do I save changes to an Attachment data type?
I want to use a macro directly from the table rather than using code triggered by the update form since I don't want the history saving to be bypassed by people making updates directly to the table.
The attachment itself doesn't have to be resaved, but I want the history table to show that a change have been made

How do I make an attachment name appear while working in a form (Access 2007)?

How do I make an attachment name appear while working in a form (Access 2007)? Icon
i have created a form to describe digital photographs (JPGs) attached to my database. Along with the attachment image, I've also added a field that displays attachment name.

However, this field is not populated until I close and reopen the database.

How can I have the form display the attachment name as soon as the attachment is added?

attachment type field in a subform

attachment type field in a subform Icon
I am using an attachment type field in one of the tables. I have a query on this table that and I would like to use it output as a source data for a subform.

Here where the issue is: it seems that I can't add one field representing the file to be visible in the form.
There is number of file metadata such as: .FileData, .FileFlags, .FileName, .FileTimeStamp, .FileType, .FileURL.

I would only like to display an icon, or a filed representing the attachment.

Attachment data type and VBA

Attachment data type and VBA Icon
I'm trying to create one record from another one. One field is attachment data type. I just create a normal query (INSERT INTO) but it' not working (impossible with multiple value field). Do you have a suggestion about inserting or updating an attachment datatype field (with or without VBA

Attachments in sub-form in Access 2007

Attachments in sub-form in Access 2007 Icon
I have a table (Reports) that holds some descriptions of some reporting, and then an attachment field that holds the report itself. (I know I should probably be using a hyperlink, but the attachment field is more convenient). Then I have another table (PersonnelReports) that holds a Many-to-one relationship with my main table (Personnel), but calls up the data from the Reports table. I have a query that pulls the correct data out of the Reports table for each Personnel, and then I use a sub-form based on that query to display the details of the report. But the sub-form won't display the attachment field, even though it exists in the query.