I know it should show a number from a cbo selection in the table but how do I
show the actual selection (data) insteaad of the number from a cbo selection?
A Combo Box is based (usually) on a Query, the combo's RowSource. You can
include whatever field or fields you want to see in that query.
Set the combo's Column Count property to include all the columns that you want
to use; set the Bound Column property to the value you want stored in your
table (typically the numeric ID field); set the Control Source to the name of
the table field into which that value should be stored; and set the
ColumnWidths property to set the column width of the number field to 0, and
the width of the field you want displayed on the combo to the desired size of
that column.
For instance, you might have a query:
SELECT CustomerID, LastName & ", " & FirstName, Phone, EMail
FROM Customers
ORDER BY LastName, FirstName;
as the row source of a query to display all customer names in alphabetical
order by last name. Set the Column Count to 4, the Bound Column to 1, the
Control Source to CustomerID, and the ColumnWidths to
0;1.25;.5;2
to store the CustomerID in your table but display "Jones, Michael" when the
combo box is not dropped down. It will show
Jones, Michael 888-555-5555
[email protected]
when the combo is dropped down.
John W. Vinson [MVP]