[AccessD] Weird error upon open

Jim Dettman jimdettman at verizon.net
Fri Aug 7 09:51:38 CDT 2015


 Without more context it's hard to say, but my guess would be that the VBE
is not open as yet.

 I've never used that method to get the module name, I always use a
constant.

Jim. 

-----Original Message-----
From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of
Susan Harkins
Sent: Friday, August 07, 2015 10:41 AM
To: Access Developers discussion and problem solving
Subject: [AccessD] Weird error upon open

The following function is throwing an error when the database throws any
error upon opening:

VBE.ActiveCodePane.CodeModule

The rest of the time, it works fine. This only breaks when the first thing
I try to do produces an error. Any idea why?

Susan Harkins
-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list