Solved

Compile Error in hidden module:

Posted on 2015-01-29
2
380 Views
Last Modified: 2015-02-17
when you add a form or report in Access from another database, if you get the error "Compile Error in hidden module:" what could be the issue? (it worked before adding the form/report).
0
Comment
Question by:25112
2 Comments
 
LVL 24

Accepted Solution

by:
Bitsqueezer earned 375 total points
ID: 40579186
Hi,

I would check the VBA references in the original database, probably there is a reference to a module which you do not have in your current database. Most likely it is a reference like ADO library which is not in the list of references by default but often used, but it could of course be any other non-default reference. Look into the code of the imported form and check all declarations like "Dim rs As ADODB.Recordset" which would give you the hint that here ADO is needed, similar for any other kind of object which needs an external reference (like MS Office library which is i.e. needed for file dialogs etc.).

Cheers,

Christian
0
 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 125 total points
ID: 40579471
You might also have a conflict in name; you have a module or procedure that is named the same as what is in the hidden project.

Jim.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now