Solved

Compile Error in hidden module:

Posted on 2015-01-29
2
399 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

734 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