Compile Error in hidden module:

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).
LVL 5
25112Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
BitsqueezerConnect With a Mentor Commented:
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
 
Jim Dettman (Microsoft MVP/ EE MVE)Connect With a Mentor President Online Computer Svcs, WNY IncCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.