Results 1 to 7 of 7
  1. #1
    stildawn is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Oct 2013
    Posts
    185

    Admin user gets different results when running code than when I do it.


    Hi All

    I have a very complicated database that uses local access tables and Azure SQL tables etc, we have an admin person that adds new records to the database via a complex set of VBA / SQL code.

    After an extensive update to the database, the admin person has twice now told me that they ran a spreadsheet (where the new data originally comes from) that didn't work, or only did half of the rows etc. I then then try it again using the exact same spreadsheet (original data) and the exact same version of the access database and the code works for me fine every time, both when I step through it and check each step, and when I run it all at once and check the final result.

    So my question is, why does the same code result in something different for them, but not for me? It's making it very hard to bug check as I can't replicate what is happening for them. Is there anything that I am missing? Maybe like a different Windows setting or Access setting or something that could be causing the difference?

    The two examples I have at the moment are:

    1. A spreadsheet that for them didn't upload at all, Access ran through the code reporting no errors, but the new data just wasn't in the database at the end of the upload process.
    - They emailed me the exact same spreadsheet and I ran it step by step in the same version and it worked fine, I also ran it again all at once (not stepping through the code) and it also worked, the end result being the data successfully in the database.
    2. A spreadsheet that for them uploaded the first 102 rows of data and ignored the last 30 rows, Access ran through the code without errors etc.
    - I tried it again on my end, and both stepping through and running the code all at once all 132 rows were uploaded correctly.

    Any ideas?

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,568
    Yes. Logon as them, then try your debugging?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    stildawn is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Oct 2013
    Posts
    185
    Unfortunately they are in a different country so its not as easy as going across to their desk and trying it on their machine.

    Logging into the access database as them will make no difference, its the exact same code they are running.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,568
    Quote Originally Posted by stildawn View Post
    Unfortunately they are in a different country so its not as easy as going across to their desk and trying it on their machine.

    Logging into the access database as them will make no difference, its the exact same code they are running.
    Suit yourself.
    I was not expecting you to go to their computer and log on to that, not until that was the last resort, especially if they are far away.
    There is such a thing as a remote connection?, I use it to support my sister and friends all the time?

    If they are using exact same code then it would still be worthwhile logging on as them on your computer and see if you can replicate the problem?

    When issues like this happen, I look at what is different, and in the easiest order to test.

    Even worth making sure they have a fresh copy of the FE as well?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  5. #5
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I'm with Welshgasman on this.
    Quote Originally Posted by Welshgasman View Post
    <snip>There is such a thing as a remote connection?, I use it to support my sister and friends all the time? <snip>
    I use TeamViewer to help my Bonus Mom with her computer and Excel spreadsheets. Works slick and is free...

  6. #6
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    issue #1 suggests user rights to me. Issue #2 suggests hardware issue (as if part of the code runs too fast for the connection).
    Logging on as affected user with your own pc won't address a hardware issue I'd say, and it can't be both reasons IMO. Lack of user rights doesn't allow for partial running of action queries (as in issue 2), right?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    If you both have Skype, you could do some screen sharing within Skype. But as ssanfu suggested Teamviewer is likely a better approach.
    If you have tried logging on with the Admin account, and don't get the issue, then that would seem to point to hardware/configuration on the Admin's machine as micron suggested.

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

Similar Threads

  1. Replies: 7
    Last Post: 06-19-2019, 04:11 PM
  2. Replies: 3
    Last Post: 08-26-2015, 09:46 AM
  3. Access 2007 Admin and User accounts
    By jle0003 in forum Security
    Replies: 1
    Last Post: 07-30-2012, 03:22 PM
  4. Restricted Access - Admin v. User
    By need_help12 in forum Security
    Replies: 4
    Last Post: 04-30-2012, 09:51 AM
  5. Ignore user input while code is running
    By Bigdoggit in forum Forms
    Replies: 5
    Last Post: 03-28-2011, 07:58 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