Results 1 to 4 of 4
  1. #1
    surfbinu is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    3

    Problems with VBA Code after changing to Office365


    Hi guys,

    I am not an expert at all in Access . I took over a file with deadlines from a colleague. He used Access2010, I use now Access from Office365.

    When I open the Access file, the system says it looks for the reference file OFFOWC.DLL. Afterwords when I want to open a Report, it tells me that there is an error in the VBA Code.
    Can anyone help me? The file is attached.

    Thank you very much in advance:
    Albin
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    whenever you do an upgrade this will happen and you must fix the broken references,

    Enter VBE (Alt-F11)
    menu: tools , references,
    look for the checked item marked MISSING
    uncheck it,
    find the new version in the list and check it.

    the code should work now.

  3. #3
    surfbinu is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    3
    that comment really helped me, thanks a lot!


    Quote Originally Posted by ranman256 View Post
    whenever you do an upgrade this will happen and you must fix the broken references,

    Enter VBE (Alt-F11)
    menu: tools , references,
    look for the checked item marked MISSING
    uncheck it,
    find the new version in the list and check it.

    the code should work now.

  4. #4
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Welcome to the forum......

    I see several things that should be fixed.

    You have a standard module named "Date". "Date" is a reserved work and shouldn't be used as object names.
    You also have a field name of "Nummer" (Number). "Number" is also a reserved word.
    Here is a list of reserved words that shouldn't be used as object names.

    You have a couple of Macros where the name begins with a number. Never begin names with a number.

    The top two lines in any module should be
    Code:
    Option Compare Database   'Use database order for string comparisons
    Option Explicit

    Good luck with your project.....

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

Similar Threads

  1. Access/Windows/Office365 Version Checker
    By isladogs in forum Modules
    Replies: 1
    Last Post: 12-09-2018, 07:04 AM
  2. Replies: 0
    Last Post: 09-10-2016, 11:55 AM
  3. VBA Me. Code Problems
    By beaverx37 in forum Access
    Replies: 6
    Last Post: 02-11-2015, 12:07 PM
  4. Access 2010 Office365 Web Database
    By jhts in forum Access
    Replies: 9
    Last Post: 01-31-2013, 01:34 PM
  5. Problems changing report design
    By Peter O in forum Access
    Replies: 0
    Last Post: 12-15-2008, 03:01 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