473,503 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I link the combo box to the edit box

Hi,
I have a form that there is a combo
box and an edit box. I have a table with Customer ID, Company Name and
Country. I want to do that when my combo box chooses an item(eg
McDonald in Company Name) in the form, the edit box can show another
item (eg USA in Country) after the trigger. How can I do that? I've
tried to do so, but the edit box still cannot show the related item,
but only blank to let me enter info.
Thx very much!
Raymond
Nov 12 '05 #1
2 2586
Make sure you combo returns the Country in a column - it can be hidden by
setting that column width to 0.

In the Control Source for the text box put -

=NameOfCombo.Column(ColumnIndex)

ColumnIndex is a 0 based index. Count the column from left to right 0,1,
etc.

Jeff Pritchard
________________
Asken Research Pty. Ltd.
Access Database Developers
www.asken.com.au

"studentZ" <is*********@yahoo.com.hk> wrote in message
news:3d**************************@posting.google.c om...
Hi,
I have a form that there is a combo
box and an edit box. I have a table with Customer ID, Company Name and
Country. I want to do that when my combo box chooses an item(eg
McDonald in Company Name) in the form, the edit box can show another
item (eg USA in Country) after the trigger. How can I do that? I've
tried to do so, but the edit box still cannot show the related item,
but only blank to let me enter info.
Thx very much!
Raymond

Nov 12 '05 #2

"studentZ" <is*********@yahoo.com.hk> wrote in message
news:3d**************************@posting.google.c om...
Hi,
I have a form that there is a combo
box and an edit box. I have a table with Customer ID, Company Name and
Country. I want to do that when my combo box chooses an item(eg
McDonald in Company Name) in the form, the edit box can show another
item (eg USA in Country) after the trigger. How can I do that? I've
tried to do so, but the edit box still cannot show the related item,
but only blank to let me enter info.
Thx very much!
Raymond

Please visit: http://www.mvps.org/access/
They are always looking for work.
Schill Willingly
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1904
by: studentZ | last post by:
Hi, I am a beginner in Access. I want to do a form that there is a combo box and an edit box. I have a table with Customer ID, Company Name and Country. I want to do that when my combo box...
2
10987
by: Lucinda Roebuck | last post by:
I'm using Access 97 on a Windows XP computer. The combo box on the form "form1" will not refresh after a new name is added to the list. The "limit to list" properties for the combo box is set to...
6
3743
by: Ron L | last post by:
I have a dataset whose source is a SQL 2k stored procedure that I am trying to display in a datagrid. This datasource has 4 columns that I am interested in here, a text column and 3 value columns...
9
6163
by: Duncan Barnes-Ceeney | last post by:
I’m having problems with a custom Combo box. The main problem is that I want to modify the look of the combo which includes the size of the button. To do this I have inherited from the standard...
1
2447
by: The Eclectic Electric | last post by:
I'd be very grateful if anyone could help me with this. From my limited knowledge of Javascript I don't think it is possible, but I'll punt anyway. I downloaded and very slightly adapted this...
4
2894
by: virtualgreek | last post by:
Dear All, First of all I would like to take the time to thank you all for your efforts and time spent at this wonderful forum. I have found it very helpful with numerous examples available for...
3
4731
by: John | last post by:
AC2007 I changed my combo's row source and then the autocomplete stopped working. The combo is two columns, bound to the first. First column is primary key (ID). Second column is a...
1
2047
by: sejal17 | last post by:
hi everyone, I have a page with combo box. paypal payment:<select name="paypal"> <option value="On">On</Option> <option...
8
3449
ddtpmyra
by: ddtpmyra | last post by:
Hi, I have PHP script that I use for new entry and edit entry, inside the form I have query combo (combo values querying from other table), my problem is how make the default value of my combo to...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.