Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

Symptoms

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

You can refer to a particular column of a combo box in a text box on a form by 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 following:
#Name?

↑ Back to the top


Resolution

To work around this behavior, use the entire path through the main form to refer to the column of the combo box 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.

↑ Back to the top


Keywords: KB209485, kbprb

↑ Back to the top

Article Info
Article ID : 209485
Revision : 3
Created on : 6/28/2004
Published on : 6/28/2004
Exists online : False
Views : 248