I used the combo box wizard on my forms to create them.
Here is the row source on the boxes that work.
SELECT [Codes - Phases].[Phase Code], [Codes - Phases].[Phase Description]
FROM [Codes - Phases] ORDER BY [Phase Code];
So it displays both the phase code and phase. Then when I make my
selection
it only keeps the phase code.
But, when I use the same steps in the wizard on tables with an autonumber
field it doesn't work. Here is the row source on the boxes that don't
work.
SELECT [Project - General].AutoNumber, [Project - General].[CCP No],
[Project - General].[Project Name] FROM [Project - General] ORDER BY [CCP
No];
It will only display the project name and not the CCP No. I didn't tell
the
wizard to select autonumber, it just did that on its own.
Does this help? Do you need more information?
Thanks.
Jeff Boyce said:
Stacey
"... combobox from a table ..." ?What does this mean?
Are you saying that you are trying to work directly in a table, and using
the lookup datatype? If so, search the tablesdbdesign newsgroup --
there's
a strong consensus against using the lookup datatype.
And I'm a little confused about what you describe is happening on your
forms. Comboboxes, when 'dropped', can display multiple fields, but once
selected ('closed'), they only display a single field. What do you mean
when you say your comboboxes display a numeric value and description?
Regards
Jeff Boyce
Microsoft Office/Access MVP
message I've created a couple of combo boxes on forms that show a numeric value
(stored as text) and description without problems. The combo box will
show
both values but only stores the numeric one.
Ex: 105-100 Construction Contracts
However, when I try to do the same combo box from a table that has an
autonumber field it doesn't work.
Ex: 0000056845 AAA Roofing
Any suggestions?