Results 1 to 3 of 3
  1. #1
    MGW1138 is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2018
    Posts
    1

    Table Linked to Excel Spreadsheet

    I have a database linked to an Excel Spreadsheet. This Sheet is created / deleted / recreated by our network SQL Server Database at random times. I need to know how to a) detect that the Spreadsheet (effectively a transaction file) has had the link broken and b) force the re-establishment of the link automatically. Once this link is reestablish I can process the transaction file. If there is a way to automatically relink the sheet that would be great but I still would need to know how to detect that the relink had been done in order to process the transaction file.

    Thanks
    Michael

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    the link should never break.
    If you keep writing the excel data to the same excel file everytime, the data will self refresh.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    One thought that comes to mind is checking the date modified of the file:

    https://www.techonthenet.com/access/...ledatetime.php

    You'd have to store it when you link to it, then check it periodically to see if it's changed. if so, relink and update the stored date/time.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 11
    Last Post: 12-05-2017, 12:37 PM
  2. Replies: 2
    Last Post: 12-19-2016, 07:30 PM
  3. Linked Excel spreadsheet
    By nikogeorgiev in forum Access
    Replies: 3
    Last Post: 05-16-2013, 03:10 AM
  4. Replies: 1
    Last Post: 01-16-2012, 06:12 PM
  5. Pivot Table from Excel Spreadsheet
    By Cgil32 in forum Access
    Replies: 0
    Last Post: 08-26-2010, 05:18 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