Create combo box in table properties

  • Thread starter mugziegumz via AccessMonster.com
  • Start date
M

mugziegumz via AccessMonster.com

Brand new with Access. Just started making a table. I want a combo box. I
chose combo option in the properties but where do I enter in the info that I
want in my combo box?
Thanks
shannon
 
G

Graham Mandeno

Hi Shannon

No matter what Microsoft tell you about lookup fields, combo boxes belong on
forms, not in tables.

A combo box usually shows a list of options derived from another table.
Let's say you have a field in your table named ContactType, and you have a
table named ContactTypes with the following data:

CtpID CtpName
----- ---------
1 Employee
2 Customer
3 Associate
4 Supplier
5 Friend

The idea is that the ContactType field contains the number corresponding to
the option on the list, but the combo box displays the text.

The combo box has several properties that control what is displayed and
stored from the list. To set up this example, you would set these
properties as follows:

ControlSource: ContactType (the name of the field where the value is to
be stored)

RowSourceType: Table/Query

RowSource: ContactTypes (the name of the table, or even better:)
RowSource: Select CtpID, CtpName from ContactTypes order by CtpName;

ColumnCount: 2 (the number of columns in your table or query)

BoundColumn: 1 (the column which contains the value to be stored)

ColumnWidths: 0 (the width of the first column - this causes the first
column (the numbers) to be hidden so that what you see is the text)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top