A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using data stored in a combo box



 
 
Thread Tools Display Modes
  #1  
Old October 29th, 2008, 11:48 AM posted to microsoft.public.access
Andrea Stimson
external usenet poster
 
Posts: 8
Default Using data stored in a combo box

Hello,

I'm in the process of setting up a report in access and one of the field in
the report needs to show data stored in a combo box in a form. I need to know
how to include the data from the combo box in a report. The combo box is
populated when a site id is entered in the form, the data in the combo box in
the site name which is taken from a drop down list.

I hope you can help me with this.

Regards
Andrea Stimson
--
Andrea Stimson
Technical Administrator
  #2  
Old October 29th, 2008, 12:15 PM posted to microsoft.public.access
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Using data stored in a combo box

Andrea,
If I understand correctly...
Given that the form is open when the report is run, and assuming the
combo is on the main form, you can refer to the value in your combo box with
an unbound text control on the report. In the control's ControlSource...
=Forms!frmYourFormName!cboYourComboName
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Andrea Stimson" wrote in message
...
Hello,

I'm in the process of setting up a report in access and one of the field
in
the report needs to show data stored in a combo box in a form. I need to
know
how to include the data from the combo box in a report. The combo box is
populated when a site id is entered in the form, the data in the combo box
in
the site name which is taken from a drop down list.

I hope you can help me with this.

Regards
Andrea Stimson
--
Andrea Stimson
Technical Administrator



  #3  
Old October 29th, 2008, 07:41 PM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Using data stored in a combo box

On Wed, 29 Oct 2008 04:48:01 -0700, Andrea Stimson
wrote:

Hello,

I'm in the process of setting up a report in access and one of the field in
the report needs to show data stored in a combo box in a form.


The data is NOT "stored in a combo box". A combo box is just a display and
selection tool, not a data storage medium.

I need to know
how to include the data from the combo box in a report. The combo box is
populated when a site id is entered in the form, the data in the combo box in
the site name which is taken from a drop down list.


Base the report on a Query joining your table to the site-names table, joining
by the site ID, and include the site name from the table.
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.