Results 1 to 3 of 3
  1. #1
    carmenv323 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2021
    Location
    Massachusetts
    Posts
    78

    Can't Remove Module (invalid form name)


    I had a form that I renamed, when I renamed it created a new Class Object - now I can't delete the old one.

    Now when I open the database I keep getting the error but I can't delete the Class because it's not active.

    Is there a workaround?
    Attached Files Attached Files
    Last edited by carmenv323; 04-14-2022 at 10:27 AM. Reason: adding attachment

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,101
    Try to open the db holding down the SHIFT key to bypass any opening code, run a compact and repair while still holding down the SHIFT. Now close the db and decompile it.
    http://www.fmsinc.com/microsoftacces.../decompile.asp
    https://www.barnesbusinesssolutions....ssDatabase.pdf

    Once it is decompile open the VBE window and try to compile it; fix any compile errors you encounter if any. And finally do a final compact and repair.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    Minty is online now VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,001
    Have you tried compacting and repairing the database?

    Edit: Damn - Too slow!
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. Replies: 7
    Last Post: 12-10-2021, 10:01 AM
  2. Replies: 3
    Last Post: 09-27-2021, 10:49 AM
  3. Can't Remove MsgBox without module not working
    By cm-net in forum Programming
    Replies: 1
    Last Post: 01-20-2018, 07:49 AM
  4. Invalid use of Null in Module error
    By Tom123456 in forum Modules
    Replies: 3
    Last Post: 10-13-2017, 07:10 AM
  5. Replies: 4
    Last Post: 05-16-2011, 04:58 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