Results 1 to 2 of 2
  1. #1
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131

    Attached Files


    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?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Just went through a lengthy exploration of the Attachment field for another recent thread. It seems an Attachment field cannot be used in Update or Append queries, neither as source nor destination. Have to use VBA to manage. Check thread https://www.accessforums.net/access/...t-15815-2.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Date not Sorting Correctly (screenshot attached)
    By KrenzyRyan in forum Queries
    Replies: 5
    Last Post: 06-27-2011, 01:44 PM
  2. Replies: 1
    Last Post: 02-21-2011, 09:55 PM
  3. Where are attached files stored?
    By Delta223 in forum Access
    Replies: 3
    Last Post: 01-11-2011, 10:32 AM
  4. How to attached mergered envelope to a Form
    By GomChrist in forum Access
    Replies: 1
    Last Post: 11-19-2010, 12:30 AM
  5. Replies: 1
    Last Post: 07-09-2006, 09:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums