troubleshooting Question

Removing HasModule

Avatar of Derek Brown
Derek BrownFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft Access
2 Comments1 Solution45 ViewsLast Modified:
I'm trying to create an ACCDE file from an Access 2016 DB. I get error Too many objects. I have about 400 objects queries forms reports etc.. Reading the help for the error it says that if Forms Reports etc. have HasModule set to Yes it doubles the number of objects that Access counts. Is there way to remove HasModule or set it to no so that I can try to create an ACCDE file. AS there are so many I wondered if code like this exists:

    Dim obj As Object
    Dim I As Integer
    For Each obj In CurrentProject.AllForms
        Application.acForm , obj.Name, bHideUnhide  (replace with something like HasModule=False)
    Next obj

    For Each obj In CurrentProject.AllReports
        Application.SetHiddenAttribute acReport, obj.Name, bHideUnhide  (replace with something like HasModule=False)
    Next obj
Daniel PineaultPresident / Owner CARDA Consultants Inc.
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros