Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: Create combo box in table properties

Geek News

Create combo box in table properties
"mugziegumz via AccessMonster.com" <u47747[ at ]uwe> 12/9/2008 9:32:19 PM
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

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200812/1

Re: Create combo box in table properties
"Graham Mandeno" <Graham.Mandeno[ at ]nomail.please> 12/9/2008 10:02:51 PM
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)


--
Good Luck :-)

Graham Mandeno [Access MVP]
Auckland, New Zealand

"mugziegumz via AccessMonster.com" <u47747[ at ]uwe> wrote in message
news:8e6bfbe81b830[ at ]uwe...
[Quoted Text]
> 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
>
> --
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200812/1
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net