ACC: Procedure Name Ctl* Doesn't Match Control NameLast reviewed: June 8, 1997Article ID: Q156198 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When you create a control on a form that starts with a numeric character, and you then add an event procedure to that control, Microsoft Access will attach the characters "Ctl" (without the quotations marks) to the name of the procedure.
CAUSEMicrosoft Access does not allow a procedure name to begin with a numeric character; therefore, it automatically changes the procedure name to something that is valid.
RESOLUTIONUse the guidelines for naming Visual Basic procedures (or Access Basic procedures in Microsoft Access version 2.0) when you create controls that may be used in event procedures.
MORE INFORMATIONMicrosoft Access has a different naming convention for Visual Basic (or Access Basic) procedures than it has for controls on forms. Procedure names must begin with a letter. Control names can start with a number and still be valid. However, if a control name starts with a number, and you add an event procedure to that control, Microsoft Access will attach the characters "Ctl" (without the quotations marks) to the name of the procedure.
Steps to Reproduce Behavior
|
Keywords : FmrOthr FmsEvnt kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |