Results 1 to 8 of 8

Thread: Excel Add-In - Not allowing shareable file in Access Database

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2020
    Posts
    4

    Excel Add-In - Not allowing shareable file in Access Database

    We have a handful of users that are having issues with the Add-In tool. This tool has been in place for over 10 years and we never had issues until this year. The Excel Add-IN tool pulls multiple scenarios of data within this add in. But one specific part of it access a file YM.accdb, an access database. When trying to do an item search, some users are getting the Data Link Properties Box and anything we enter there does not work. I have done a variety of test, and it looks like it is a shareable issue. So if I have all users out of the YM.accdb database, it will work for the users that have issues….only if there is not a user lock on the YM.accdb. I did check all the appropriate shareable settings in Excel. But I want to note, it works for the 30 other users when there is a lock on the database. Why are there 3 users that have this issue but the other 30 issues can access the file when someone else is querying against the same database? Every week appears I get another user that comes up with the same issue. There are no limitations of users that we exceed on the folder.

  2. #2
    PowerPoster
    Join Date
    Nov 2017
    Posts
    3,116

    Re: Excel Add-In - Not allowing shareable file in Access Database

    So, this is a single database file where each user is accessing the same file, and the file is on a mapped drive/network share?

    Is there any consistency with the permissions that the various users have on this network share? If you break the users into two groups - the 30 that work when there is a lock - call group A, and the 3 that work only when no one has the DB locked - call group B - to me, it sounds like group A might have read-write permissions to the file, and group B might only have read access. Or possibly vice-versa, but permissions would be the first thing I would check - both the Share permissions and the folder level permissions (note that those are very distinct permissions settings, and most restrictive wins).

    Good luck.

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2020
    Posts
    4

    Re: Excel Add-In - Not allowing shareable file in Access Database

    Quote Originally Posted by OptionBase1 View Post
    So, this is a single database file where each user is accessing the same file, and the file is on a mapped drive/network share?

    Is there any consistency with the permissions that the various users have on this network share? If you break the users into two groups - the 30 that work when there is a lock - call group A, and the 3 that work only when no one has the DB locked - call group B - to me, it sounds like group A might have read-write permissions to the file, and group B might only have read access. Or possibly vice-versa, but permissions would be the first thing I would check - both the Share permissions and the folder level permissions (note that those are very distinct permissions settings, and most restrictive wins).

    Good luck.
    File is on a network share. Both groups A and B have share permissions and folder level permissions. Seems like the issue started when we went to Office 365 and/or one drive. The excel add-in feature allows user to do searches on the microsoft access database, but for the 3 users(group B) they get the "Please enter Microsoft Access Database Engine OLE DB Initialization Information" box. The open Mode on this box shows DB_MODE_READWRITE. Today I just received notification from another user where it worked yesterday for them and then today they get the pop up error.

  4. #4
    PowerPoster
    Join Date
    Nov 2017
    Posts
    3,116

    Re: Excel Add-In - Not allowing shareable file in Access Database

    Quote Originally Posted by sjj0133 View Post
    File is on a network share. Both groups A and B have share permissions and folder level permissions.
    Yes, but what level of permissions do they have? Read-Execute only? Read and Write?

    What happens if a user in group B tries to create a new text file in the same folder that this database is located? I'm predicting they get an access denied error. What happens if a user in group A tries to create a new text file in the same folder that this database is located? I'm predicting that the file will get created successfully.

    If so, then permissions are the root cause of your problem, and I can go into more detail if needed with a very similar issue I encountered a long time ago.

  5. #5
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Excel Add-In - Not allowing shareable file in Access Database

    Today I just received notification from another user where it worked yesterday for them and then today they get the pop up error.
    windows updates?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  6. #6
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,532

    Re: Excel Add-In - Not allowing shareable file in Access Database

    I wonder if it's a first-come, first-served kind of thing. First 30 in the door get a free pass...


    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  7. #7

    Thread Starter
    New Member
    Join Date
    Dec 2020
    Posts
    4

    Re: Excel Add-In - Not allowing shareable file in Access Database

    Quote Originally Posted by OptionBase1 View Post
    Yes, but what level of permissions do they have? Read-Execute only? Read and Write?

    What happens if a user in group B tries to create a new text file in the same folder that this database is located? I'm predicting they get an access denied error. What happens if a user in group A tries to create a new text file in the same folder that this database is located? I'm predicting that the file will get created successfully.

    If so, then permissions are the root cause of your problem, and I can go into more detail if needed with a very similar issue I encountered a long time ago.
    Verified with both users and they can create a .txt file in the folder where the database is. It is very strange issue, and even has our IT department stumped. Would anything have changed with windows 365 and/or windows updates that you are aware of that would cause a share issue?

  8. #8

    Thread Starter
    New Member
    Join Date
    Dec 2020
    Posts
    4

    Re: Excel Add-In - Not allowing shareable file in Access Database

    Quote Originally Posted by westconn1 View Post
    windows updates?
    I did check with the user and he stated he did have a windows update inbetween the last time he tried to access the database. Do you know how this would affect our database? Anything I can do to correct on my end?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width