View Full Version : combo box and column selection


bill crumpton
12-09-2000, 10:08 AM
I have a form that is strictly used as a result of a look up query. The problem is that I do not want the combo boxes to show as combo boxes on the form. I want them to show as text boxes. I created an unbound text field and made the control source.......cbocombobox.coulumn2 but this is not working. I am just getting a #name error in the unbound field. Any help would be greatly appreciated.

Pat Hartman
12-09-2000, 04:54 PM
The proper syntax is:
cbocombobox.column(2)
Keep in mind that the combobox index starts with 0. So:
cbocombobox.column(0) = the first column
cbocombobox.column(2) = the third column

bill crumpton
12-12-2000, 09:16 AM
As usual.....thanks Pat.

bill crumpton
12-12-2000, 09:46 AM
Is there a way that I can still obtain the column information without the combo box actually physically on the form?

Shep
12-12-2000, 10:35 AM
It can be on any open form. Just extend the reference to it a bit further ie:

=[Forms]![frmAnyOpenForm].[ComboBox].[Column](2)

bill crumpton
12-12-2000, 02:36 PM
Thanks that worked.

BAC