ACC: "#NAME?" Error Referring to Combo Box Column in Subform

Last reviewed: May 12, 1997
Article ID: Q103129
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0

SYMPTOMS

You can refer to a particular column of a combo box in a text box on a form using the .Column property as follows:

   =Forms![Formname]![ControlName].Column(x).

However, if the combo box is on a subform, the text box returns the message:

   #Name?

RESOLUTION

To work around this behavior, you can refer to the column of the combo box that is on the subform through the main form, even though the text box is actually on the subform.

For a subform with a combo box and a text box, the following syntax returns the correct result:

   =Forms![MainForm]![Subform].Form![Controlname].Column(x)

NOTE: Columns are numbered starting with 0, not with 1.

For more information about errors you my receive when you reference the Column property of a combo box in Microsoft Access version 1.1, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q103999
   TITLE     : ACC1x: GP Fault Referencing Column Property of Combo Box


Additional query words: poundname
Keywords : FmsCmbo kbusage
Version : 1.0 1.1 2.0
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 12, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.