Error number 16 - Expression too complex
I just had this problem. I have no idea as to what caused this. This one is really weird as I'm using the following code to execute startup code after verifying the references.
Access.Application.Eval ("fcnAutoExec2()")
The above was successfully executed but it returned the above error. See Subject: INFO: How to guarantee that references will work in your applications for why I'm using this.
Decompiling fixed this problem. As did putting a stop statement in the fcnAutoExec2 and removing it. Weird, really weird.
The Decompile or how to reduce Microsoft Access MDB/MDE size and decrease start-up times has been updated accordingly.