Results 1 to 4 of 4
  1. #1
    dollygg is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2009
    Posts
    73

    MS Access upgraded to Office 365 version

    Hi all, I found something very odd after the upgrade. Those queries ( make table query, update query and insert into query) always fail on the first run.

    eg. I have 10 queries in a macro, that means it will fail 10 times before it successfully went through. How to avoid this happen? The reference library had been refreshed to 16.0 .

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,979
    I've never experienced this problem in any of my apps and I've been using 365 for several years.

    Do the queries run successfully first time if run from the nav pane or using DoCmd.OpenQuery ... or similar?

    It may be corruption in your project. Make a backup then try decompiling your project, followed by compact & repair and finally recompile
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    dollygg is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2009
    Posts
    73
    I have old .mdb file. The code behind the macro button is "Docmd.openquery queryname".
    I will try to compact and repair. Thanks.

  4. #4
    dollygg is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2009
    Posts
    73
    Actually I found the solution.

    The primary reason behind this error is that MS Access does not trust the database from which the macro is run. By default, Access opens databases that are not trusted in the Disabled mode. In the Disabled mode, executable content is disabled, preventing you from running a macro.


    How to Fix Microsoft Access Database Error 2950? (stellarinfo.com)

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

Similar Threads

  1. Access/Windows/Office 365 Version Checker
    By isladogs in forum Access
    Replies: 4
    Last Post: 09-03-2022, 02:14 PM
  2. Replies: 7
    Last Post: 03-11-2019, 03:06 PM
  3. Replies: 6
    Last Post: 02-18-2016, 10:15 AM
  4. Determine Current Installed Version of Office
    By GraeagleBill in forum Programming
    Replies: 8
    Last Post: 11-03-2015, 07:11 PM
  5. Replies: 4
    Last Post: 10-15-2013, 11:33 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