[AccessD] duplicate function names

Charlotte Foust cfoust at infostatsystems.com
Mon Jul 31 17:18:18 CDT 2006


That's one reason you usually give the routines in a code library unique
names.  You can also have routines with the same names in both local and
public modules.  The one within scope is always the one executed. 


Charlotte Foust

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim
Sent: Monday, July 31, 2006 3:04 PM
To: 'Accessd (E-mail)
Subject: [AccessD] duplicate function names

Maybe everyone but me knows this, but I just stumbled upon the fact that
it is possible to have two functions with the same name coexist. If one
is in a module in the current database and the other in a module in a
referenced code library Access will use the function in the current
database and ignore the version in the code library. Everything compiles
and runs fine at least in access 2000. Whether or not this is useful or
merely dangerous is a different question.

Jim Hale

***********************************************************************
The information transmitted is intended solely for the individual or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or other
use of or taking action in reliance upon this information by persons or
entities other than the intended recipient is prohibited.
If you have received this email in error please contact the sender and
delete the material from any computer. As a recipient of this email, you
are responsible for screening its contents and the contents of any
attachments for the presence of viruses. No liability is accepted for
any damages caused by any virus transmitted by this email.
--
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