Results 1 to 7 of 7
  1. #1
    mrlddst is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2014
    Posts
    22

    Corruption of Access database when refresh is done in Excel

    Good evening,


    I'm at my wits end and need some help. I have been maintaining a Access 2000 database for a few years. I recently imported all of the objects into Access 2007. I was able to work through the majority of the issues like broken references and "not a valid bookmark" errors. However, I have been stuck for a few days on the same issue. I have a form that the users go hit a button to perform a series of queries that are appended to a 'make' table. The users have a Excel 2007 workbook setup that is linked using the "Database Query" connection type. When the user refreshes the Excel Workbook and returns to Access and try to close the form, they get "not a valid bookmark" error and the entire database proceeds into total corruption. I am at my wits end, I can't figure out what I am doing wrong. I have two other databases that will allow the refresh while connected to access with no issues. I can't put a primary key on a 'make table' and I don't know what else to do. Any ideas?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by mrlddst View Post
    ... I have two other databases that will allow the refresh while connected to access with no issues...
    So you are using Excel as a database and linking to Access from Excel? Database Query???? You are linking to a query in Access from Excel? What is the file extension of your Access 2007 data base? MDB or ACCDB?

  3. #3
    mrlddst is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2014
    Posts
    22
    Quote Originally Posted by ItsMe View Post
    So you are using Excel as a database and linking to Access from Excel? Database Query???? You are linking to a query in Access from Excel? What is the file extension of your Access 2007 data base? MDB or ACCDB?
    I am linking to Access from Excel using the "from other connections" and selecting the Microsoft query option. I select the odbc type as ms access. The file extension on the access database is accdb. Could it be that the refresh in Excel is altering something in the Access database and since the "make table" has no primary key then the database corrupts?

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I have never used Excel to connect to other entities. It sounds as though you have users opening and working inside the Access file that Excel connects to. Perhaps the solution is to not allow anyone to double click on or open the Access file that Excel connects to. Instead, place your Access file on a server and designate it as a Back End file. Give front end files to the users that links to the Access BE on the server. Only allow access to the BE to be via a connection and or link.

    You can have up to 20, maybe 25, concurrent users open a single Access file. The preferred methodology (topology) is to use a front end/back end set up and link/connect to the tables. You have offered limited insight so I will guess that a user may be disrupting the Make table process invoked by Excel. Splitting the DB is not a solve all but, it may mitigate the file going exclusive as a user interacts with the file directly.

  5. #5
    mrlddst is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2014
    Posts
    22
    When I was testing the connection, no one other than myself had the access database open. The majority of the tables used in the Access database are linked from an Oracle database. When the database was an mdb file in 2003, the users could refresh the excel pivot table while the database was open. In both versions, excel runs a query from Access. I checked the settings in Access 2007 and I have it set to open as a share. I checked the connection type in the Excel and I don't see anything that sets the mode for the share. I compared it to the other two Access 2007 db that do allow a refresh in excel while access is open. I see no clear difference for why those two can connect and refresh while both access and excel are open. Please let me know if there is any information that I can provide to give you a better scope of the issue.

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I am not sure either. One thng you might consider is permissions.

    I am going to send you a PM.

  7. #7
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    The only other things I can think of would be Trusted Locations and if the Access BE file resides on Windows Server 2012.
    There seems to be some issues with Sever 2012 and Access shares.
    https://www.accessforums.net/access/...tml#post222577

    I should have thought of the following first.

    Starting with Access 2007, there are registry settings that need to be adjusted for the machine that opens and runs VBA/Macros. For instance, if a machine is using a local FE file to link to tables on a BE file, that machine's registry settings need to reflect the path to the BE as well as the path to the local FE. There are different Keys for local paths and network paths. Additionally, there are Keys for trusted documents. You would need to adjust the registry to recognize the path to files like Word docs and Excel files that want to run Macros or files that Access wants to Automate.

    You can manipulate a machine's registry by going to Reg Edit directly, using VBA, or using the options in Access. Under options in Access, you can go to the "Trust Center" and add paths. I have a sample DB somewhere that works similarly to the options GUI in Access if you are interested in using VBA to edit the registry.

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

Similar Threads

  1. Replies: 27
    Last Post: 05-01-2014, 12:21 PM
  2. Access corruption in windows 7
    By rosatron20 in forum Access
    Replies: 2
    Last Post: 01-23-2014, 10:46 AM
  3. Refresh Password protected excel from access
    By ragsgold in forum Programming
    Replies: 3
    Last Post: 01-16-2013, 06:20 PM
  4. Database Corruption
    By aytee111 in forum Access
    Replies: 2
    Last Post: 09-19-2012, 08:29 AM
  5. Error excel refresh from access
    By goyal in forum Access
    Replies: 0
    Last Post: 06-10-2009, 10:59 AM

Tags for this Thread

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