Simple question - List in a combobox

I

Ilan

I want to limit the available values in a combo-box three values:
"Peter","Paul","Mary"

I have been playing around with two combobox properties: "Control source",
where I tried entering Peter, Paul and Mary using commas and semi colons,
without success, and by setting the "Row Source Type" property to "Value
List".

I think I tried every permutation, but have not been able to get a combo box
with three values of Peter, Paul, and Mary.

Guidance on this simple query appreciated.

Many thanks

Ilan
 
A

ALESSANDRO Baraldi

Ilan said:
I want to limit the available values in a combo-box three values:
"Peter","Paul","Mary"

I have been playing around with two combobox properties: "Control source",
where I tried entering Peter, Paul and Mary using commas and semi colons,
without success, and by setting the "Row Source Type" property to "Value
List".

I think I tried every permutation, but have not been able to get a combo box
with three values of Peter, Paul, and Mary.

Guidance on this simple query appreciated.

Many thanks

Ilan


If you need only three values, and you don't need to dinamically change them
you can set the RowSourceType property of your combo to "List Value"
and put into RowSource property the simple string of values
"Peter;Paul;Mary"

Now when you open your combo you have the three chois....!

Really you can modify also by code all about, but i think is not
necessary....!

Sorry about my English mistakes.....!

Alessandro(IT)
 
I

Ilan

Your English is fine.

I see where my problem was. I was listing my three properties in 'Control
source', whereas I should have been listing them in the property 'Row
Source'.

Thank you for helping me sort this out.

What is the difference between 'Control source' and 'Row source'?
 
A

ALESSANDRO Baraldi

Ilan said:
Your English is fine.

I see where my problem was. I was listing my three properties in 'Control
source', whereas I should have been listing them in the property 'Row
Source'.

Thank you for helping me sort this out.

What is the difference between 'Control source' and 'Row source'?


When you have an associated Control(List/Combo) the Control Source property
it's
the Field associated to this one...!
The RowSource it's only the Data list that you need in your selection, after
selected
you PUT in associated field(ControlSource) the Value from RowSource
List....!

But the Online Help is really better then me....! ;-)

Good week end.
Alessandro(IT)
 

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