Results 1 to 4 of 4
  1. #1
    Steven.Allman is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2010
    Posts
    118

    Want table2 to automatically MIRROR table1, to include attachements


    I currently use an update query after updating records to copy my changes to a mirror table on sharepoint. This isnt going to work with my attachments as there is no simple method to append or update query attachmnents, so is there a better method for creating a clone?
    subtable work something like that?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I don't know about Sharepoint table. It is possible to programmatically manipulate attachments. http://blogs.office.com/b/microsoft-...cess-2007.aspx

    Several threads in this forum have discussed use of this code.

    Alternative is to save the files externally and just have path in text field.

    Embedded files can bloat a db and chew up file size limit of 2GB.
    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
    Steven.Allman is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2010
    Posts
    118
    My database is split, and I acutally utilize several backends for different types of data. So far has proven very effecient.
    Thus far, with 4000 records and maybe 3 dozen with attachments (new feature) that particular backend is only 16mb, so i have a long ways to go before I get insane. Most attachments are low res PDFs.
    That code in particular is for saving the attachments, which I am having no trouble with. I can also manualy save the files on my sharepoint clone. Currently all information is saved to the clone automatically.
    The easy method is to have all my info on sharepoint but with current structure, sharepoint doesnt like PK to be anything but autonumber, and I must use something else. I have many relationships and deleting a record from one table has deleted records from another with the shared relationship...
    very annoying..

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    The link I referenced has code to add attachment to a record, save attachment to folder, and remove attachment from record.

    If you want to programmatically copy attachment from one record to another, will probably require combination of the first two procedures, that is if it's even possible with SharePoint.
    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. copy data from table1 to table2
    By mathanraj76 in forum Programming
    Replies: 13
    Last Post: 06-03-2013, 12:59 AM
  2. TABLE1 VS TABLE2...Are all ID's from Table1 in Table2???
    By smoothlarryhughes in forum Queries
    Replies: 11
    Last Post: 10-26-2012, 11:28 AM
  3. How to copy Table2 columns in to Table1 ?
    By b.saimsc in forum Access
    Replies: 16
    Last Post: 10-13-2012, 06:07 AM
  4. Copy values from table1 to table2
    By wubbit in forum Queries
    Replies: 2
    Last Post: 04-19-2012, 04:40 PM
  5. Replies: 5
    Last Post: 08-20-2010, 06:40 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