Results 1 to 4 of 4
  1. #1
    progamer is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Posts
    6

    Question Remove specific type of attachment from all records in table

    Hi There,



    I have table call "empTable" and it has an Attachment field called "Attachment". Some of the records has empty Attachment field and some record has one attachment and some has two and the attachment types are jpeg and pdf.

    I want to remove all the pdf from all the records in this table automatically with VBA or something, is it possible?

    Can anyone post the code for how to do it?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    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.

  3. #3
    progamer is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Posts
    6
    June7,

    My problem is different, I want to delete all the pdf attachments from all the records of the table.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Yes, and a site linked in that thread has code that can be adapted to accomplish that. I am having problem opening that site but it was good a week ago. Must be my lousy internet at home.

    http://blogs.office.com/b/microsoft-...cess-2007.aspx
    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. Transpose specific records to table (VBA)
    By KP_SoCal in forum Programming
    Replies: 2
    Last Post: 02-27-2013, 09:31 PM
  2. Sub form based on table select specific records
    By ReluctantGeek in forum Forms
    Replies: 0
    Last Post: 01-21-2012, 11:24 AM
  3. remove records from table
    By bird66 in forum Queries
    Replies: 1
    Last Post: 06-02-2011, 09:34 AM
  4. Replies: 1
    Last Post: 01-28-2011, 06:58 AM
  5. Attachment data type INSERT INTO not working
    By LouisLouis in forum Programming
    Replies: 0
    Last Post: 09-27-2009, 02:23 PM

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