Results 1 to 10 of 10
  1. #1
    lylyming977 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    9

    How to update an Excel spreadsheet that link to a form while users having the form opened.

    Hello,

    Please let me know what is the best way to accomplish this? I have a database that split into the Front end and the Back end. The form that the users entering the information uses the queries from two sources. One is the a table within Access and the other is an excel spreadsheet that I link to it. How can I update /replace the Excel spreadsheet while users are using the form of the front End?



    Thank you in advance.
    Lylyming977

  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,930
    A form can edit/update only one table. Why is the link included on this form?
    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
    lylyming977 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    9
    I used Linked Table to link the Excel spreadsheet. The information on the form is from a query. The query gets the information from the table within the database and the Excel spreadsheet is from another folder.

  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,930
    I understand linking. Why is the link included in this form RecordSource?
    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.

  5. #5
    lylyming977 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    9
    sorry, not sure if I understand your question because I'm not very good at Access. I need to link that excel spreadsheet because it feeds new information that I want to pull into my Access Database. If you have other way to do so, please share.. I appreciate your suggestions.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Linking is fine. However, including the link in that form's RecordSource might not be appropriate. A form can enter/edit data to only one table (and Excel cannot be edited from Access). So why do you need data from the link in that form?
    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.

  7. #7
    lylyming977 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    9
    I want to display that information from the spreadsheet on the form along with the data on the table. However, I run into this problem. If someone has the database opened, I couldn't replace that spreadsheet. That spreadsheet is from other department and the data is constantly changing. I want to load the data into my database so that I don't have to enter it again. I only update the data from the table. So, one employee but has some info from the spreadsheet and some from my database which I can do the update.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The reality is that spreadsheet cannot be edited if it is in use by the database. Period. An open form that has the link in its RecordSource locks the spreadsheet. Any open query that includes the link will cause the spreadsheet to lock, even a combobox/listbox RowSource.

    However, a domain aggregate expression that references the link does not lock the spreadsheet.
    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.

  9. #9
    lylyming977 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    9
    So in order to replace the file, I should have exclusive access to the database file. How can I flag the front ends users that the back end is off line so that I can replace the file and it disables the Application (front ends)? And how can I bring the back end off line and disable the application? I will bring it online again when I am done.

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You don't need to have exclusive use of the database, just no one can have the link in use. Even if you do have exclusive use of the database, if you have that form open then can't edit the spreadsheet.

    Don't know how to make a backend 'offline' - except maybe to change the Windows file permissions.
    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. Replies: 2
    Last Post: 03-26-2013, 10:59 AM
  2. Auto Update an Exported Excel Spreadsheet
    By halt4814 in forum Access
    Replies: 1
    Last Post: 01-18-2012, 04:30 PM
  3. Replies: 1
    Last Post: 01-16-2012, 06:12 PM
  4. Check if form is opened by other users
    By ser01 in forum Programming
    Replies: 2
    Last Post: 05-03-2010, 12:07 AM
  5. Replies: 2
    Last Post: 02-19-2010, 08:05 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