Results 1 to 12 of 12
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is online now Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    2,096

    Have code compiled on A2013 that won't compile on A2016

    I have an app, "SDMA-V1.0-Source.accdb", that I am wanting to install on a system with A2016. The first error was the "Right" function isn't found, and also "Mid" function not found. The HELP for the condition is basically Project or Reference not found. I believe I have all the A2016 reference libraries referenced, so I'm at a loss as how to resolve. If someone has A2016 on their system and can tell me how to post the accdb, I will be most grateful. (There's actually 3 dbs, one front end and two BEs.)

    These three db's are stored on my Google Drive

    Here's the Front End: https://drive.google.com/open?id=1eS...0&usp=drive_fs


    BE#1https://drive.google.com/open?id=1eq...I&usp=drive_fs
    BE#2https://drive.google.com/open?id=1EF...P&usp=drive_fs

  2. #2
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    565
    One of the libraries is missing. Open a code module (doesn't matter which one, and then Tools>References... look for any that are marked as MISSING. Check those and recompile.

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is online now Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    2,096
    Maybe I missed one??? But yes, the compiler help mentioned that possibility and so I looked in the References but didn't see one marked 'MISSING', so not sure until I have access to the client machine at the moment. Maybe someone with A2016 can download the db and flush out the problem.

  4. #4
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    565
    I would go into a code window and try to compile it. If there's an error somewhere, it will fail. Then it should show you where it failed.

  5. #5
    GraeagleBill's Avatar
    GraeagleBill is online now Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    2,096
    I already wrote in the OP that the functions Right and Mid could not be found

  6. #6
    GraeagleBill's Avatar
    GraeagleBill is online now Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    2,096
    It wasn't until I opened a general module in design view that a couple of references were MISSING. Both were in reference to Acrobat, which makes me think that there's still a snake in the grass, as why fail the compile because the compiler can't find the "Right" and "Mid" functions, they are not related to Acrobat.

  7. #7
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    565
    I'd dig around on maybe stackoverflow or another bigger website.

    https://stackoverflow.com/questions/...-compile-error

    Try creating a blank database and importing everything. Then recompile. One of your library references is screwed up.

  8. #8
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Quote Originally Posted by GraeagleBill View Post
    I have an app, "SDMA-V1.0-Source.accdb", that I am wanting to install on a system with A2016. The first error was the "Right" function isn't found, and also "Mid" function not found. The HELP for the condition is basically Project or Reference not found. I believe I have all the A2016 reference libraries referenced, so I'm at a loss as how to resolve. If someone has A2016 on their system and can tell me how to post the accdb, I will be most grateful. (There's actually 3 dbs, one front end and two BEs.)

    These three db's are stored on my Google Drive

    Here's the Front End: https://drive.google.com/open?id=1eS...0&usp=drive_fs
    BE#1https://drive.google.com/open?id=1eq...I&usp=drive_fs
    BE#2https://drive.google.com/open?id=1EF...P&usp=drive_fs
    BEs have Access denied?

    FE gives me as Missing
    Acrobat Scan 1.0 Type Library
    Adobe Acrobat 10.0 Type Library


    so how are we meant to compile this?
    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

  9. #9
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Quote Originally Posted by GraeagleBill View Post
    It wasn't until I opened a general module in design view that a couple of references were MISSING. Both were in reference to Acrobat, which makes me think that there's still a snake in the grass, as why fail the compile because the compiler can't find the "Right" and "Mid" functions, they are not related to Acrobat.
    Have a read of this thread
    https://www.tek-tips.com/threads/lef...ht-right.6094/
    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

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I have encountered this. A missing library causes intrinsic functions to not work even when the library seems to have nothing to do with the functions. I opened your db in Access 2021 and see only Acrobat Scan library is missing.

    I removed the reference then functions work and code compiles.

    Compact & Repair reduces file size by 6mb. Should always do that before posting.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #11
    GraeagleBill's Avatar
    GraeagleBill is online now Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    2,096
    Problem went away as soon as I removed the app's dependency on Acrobat to do PDF file combining function for the app. To bad OutputToReport doesn't have an Append option, as that would have made things simple. Same app now has a new problem. New post "Access seems to forget what acFormatPDF" means?"

  12. #12
    GraeagleBill's Avatar
    GraeagleBill is online now Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    2,096
    Well, Ha Ha, Access didn't forget anything.

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

Similar Threads

  1. png clipart for A2013
    By GraeagleBill in forum Reports
    Replies: 4
    Last Post: 04-04-2025, 10:45 PM
  2. Replies: 6
    Last Post: 11-05-2020, 06:20 AM
  3. Replies: 2
    Last Post: 02-11-2020, 06:05 PM
  4. Replies: 2
    Last Post: 09-15-2017, 10:53 AM
  5. Replies: 2
    Last Post: 11-13-2016, 02:04 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