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  

How to associate combo box with text box



 
 
Thread Tools Display Modes
  #1  
Old March 16th, 2008, 10:04 PM posted to microsoft.public.access
Paul
external usenet poster
 
Posts: 1,312
Default How to associate combo box with text box

I have a combo box named comOCCode on frmContract form. The combo box lookup
the O C codes from table tblOCCode. The tblOCCode has two fieldd, OCCode and
OCType. I also have a txtOCType. The txtOCType display the O C Type associate
with the O C Code selected in the comOCCode combo box.

How do I associate the comOCCode combo box control to the txtOCType text
control? Thus, what is the macro, or how do is change the property for the
combo box and the text controls?

Thanks
RD
  #2  
Old March 16th, 2008, 10:52 PM posted to microsoft.public.access
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default How to associate combo box with text box

Paul,
If I understand your question, you want the text box txtOCType to show the
OCType for whatever OCCode is selected in the combo.

Set the txtOCType's Control Source to something like this:
=Me.comOCCode.Column(1)

The combo has column numbering starting at 0, so the second column is
column(1)


Jeanette Cunningham


"Paul" wrote in message
...
I have a combo box named comOCCode on frmContract form. The combo box
lookup
the O C codes from table tblOCCode. The tblOCCode has two fieldd, OCCode
and
OCType. I also have a txtOCType. The txtOCType display the O C Type
associate
with the O C Code selected in the comOCCode combo box.

How do I associate the comOCCode combo box control to the txtOCType text
control? Thus, what is the macro, or how do is change the property for the
combo box and the text controls?

Thanks
RD



 




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 06:59 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.