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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Update box with combo box



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2010, 10:33 AM posted to microsoft.public.access.forms
Jose Lopes
external usenet poster
 
Posts: 21
Default Update box with combo box

This is quite simple I know, but I only get my hands on Access whenever I
need it so I’m always forgetting simple tasks like this one. I even had some
trouble choosing this question’s title, can you imagine it? :/

I have two tables, ORDERS and PRODUCTS.

My ORDERS form has a combo box where I can pick the PRODUCT code from the
PRODUCTS table but I also want to see the PRODUCT_NAME (PRODUCTS table) field
on this form in a different box.

Thx in advance.
  #2  
Old May 25th, 2010, 12:42 PM posted to microsoft.public.access.forms
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Update box with combo box

Jose,
Make your combo a 2 column combo, with the associated ProductName
in the second column. (ex. cboProductCode)
NoOfCols = 2
ColWidths = 1"; 1" (or whatever)
Place an unbound text control on your form, with a Control Source of...
= cboProductCode.Column(2)
(combo columns are numbered left to right 1, 2, 3, 4, etc...)
Whenever a ProductCode is selecetd in the combo, the text control will
"display" the associated ProductName.
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

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

"Jose Lopes" wrote in message
...
This is quite simple I know, but I only get my hands on Access whenever I
need it so I'm always forgetting simple tasks like this one. I even had
some
trouble choosing this question's title, can you imagine it? :/

I have two tables, ORDERS and PRODUCTS.

My ORDERS form has a combo box where I can pick the PRODUCT code from the
PRODUCTS table but I also want to see the PRODUCT_NAME (PRODUCTS table)
field
on this form in a different box.

Thx in advance.



  #3  
Old May 25th, 2010, 01:17 PM posted to microsoft.public.access.forms
RonaldoOneNil
external usenet poster
 
Posts: 345
Default Update box with combo box

Include the product name in the combo box. You can display it or not by
seting its column width to 0. In the control source of your other box, you
can then put
=[ComboBoxName].Column(1)

Adjust the name and column number to match your combo box.

"Jose Lopes" wrote:

This is quite simple I know, but I only get my hands on Access whenever I
need it so I’m always forgetting simple tasks like this one. I even had some
trouble choosing this question’s title, can you imagine it? :/

I have two tables, ORDERS and PRODUCTS.

My ORDERS form has a combo box where I can pick the PRODUCT code from the
PRODUCTS table but I also want to see the PRODUCT_NAME (PRODUCTS table) field
on this form in a different box.

Thx in advance.

 




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:33 PM.


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