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 Text Box



 
 
Thread Tools Display Modes
  #1  
Old November 20th, 2009, 03:08 AM posted to microsoft.public.access.forms
Debra Ann
external usenet poster
 
Posts: 35
Default Update Text Box

Access 2003

I have two combo boxes that have lookup queries from a table with two
columns. I want the second combo box to automatically update to whatever the
text is in the second column that matches the results of column 1:

Table:
Column 1 Column 2
A 1
B 2
C 3

So if I pick B from the dropdown of the first combobox, I was 2 to
automatically show up in the second combobox.

How do I do this?

Thanks,

DebraAnn
  #2  
Old November 20th, 2009, 07:00 AM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Update Text Box

Search 'Cascading Combos'.
--
Build a little, test a little.


"Debra Ann" wrote:

Access 2003

I have two combo boxes that have lookup queries from a table with two
columns. I want the second combo box to automatically update to whatever the
text is in the second column that matches the results of column 1:

Table:
Column 1 Column 2
A 1
B 2
C 3

So if I pick B from the dropdown of the first combobox, I was 2 to
automatically show up in the second combobox.

How do I do this?

Thanks,

DebraAnn

  #3  
Old November 21st, 2009, 12:51 AM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Update Text Box

Me.[Combo1] = Me.[Combo2] = Me.[Combo1].Column(1)


Replace Combo1 and 2 with your own object names.



Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"Debra Ann" wrote in message
...
Access 2003

I have two combo boxes that have lookup queries from a table with two
columns. I want the second combo box to automatically update to whatever
the
text is in the second column that matches the results of column 1:

Table:
Column 1 Column 2
A 1
B 2
C 3

So if I pick B from the dropdown of the first combobox, I was 2 to
automatically show up in the second combobox.

How do I do this?

Thanks,

DebraAnn



  #4  
Old November 21st, 2009, 12:54 AM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Update Text Box

If the second combo is really a textbox, you can do it like this--
Assuming the textbox is unbound, you can put this in its control source.
=[Combo1].Column(1)


Replace Combo1 with your own object names.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia

"Debra Ann" wrote in message
...
Access 2003

I have two combo boxes that have lookup queries from a table with two
columns. I want the second combo box to automatically update to whatever
the
text is in the second column that matches the results of column 1:

Table:
Column 1 Column 2
A 1
B 2
C 3

So if I pick B from the dropdown of the first combobox, I was 2 to
automatically show up in the second combobox.

How do I do this?

Thanks,

DebraAnn



 




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:45 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.