Label based on drop-down box selection

  • Thread starter Thread starter shmoussa
  • Start date Start date
S

shmoussa

Hi,

I have a table that has a list of items and the description. Using
this table, I populated a drop down box from the list of items. How
can I add a label to my form that will show the description of my
selection in the drop down box?

Thanks!
 
"Label" in an Access form has a very specific meaning.

I'll bet you want to be able to show the description, no matter how...

Use a "text box" instead of a label.

Set the ControlSource of the textbox to something like:

Me!cboYourComboboxName.Column(1)

This assumes your combobox has two columns (item, description).

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.
 
"Label" in an Access form has a very specific meaning.

I'll bet you want to be able to show the description, no matter how...

Use a "text box" instead of a label.

Set the ControlSource of the textbox to something like:

    Me!cboYourComboboxName.Column(1)

This assumes your combobox has two columns (item, description).

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.








- Show quoted text -

Thanks for the response. I actually have three columns in my table-
the second column is the list of items for the drop down box. The
third column is the description. Does that change anything in what I'm
supposed to do?
 
Take a look at Access HELP for the syntax to use with the .Column(n)
property...

I suspect you'll use:
... .Column(2)

(.Column() is zero-based ... start counting "0, 1, 2")

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Label" in an Access form has a very specific meaning.

I'll bet you want to be able to show the description, no matter how...

Use a "text box" instead of a label.

Set the ControlSource of the textbox to something like:

Me!cboYourComboboxName.Column(1)

This assumes your combobox has two columns (item, description).

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.








- Show quoted text -

Thanks for the response. I actually have three columns in my table-
the second column is the list of items for the drop down box. The
third column is the description. Does that change anything in what I'm
supposed to do?
 
Back
Top