473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Combo and text box

Hi
i have a table the fields are
company contact phone num

on a form i have a combo box that selects from the list of companies,
i also have a several text boxes.
is it posible to have the value of the contact and phone_num assigned
to thier own textbox depending on what is selected in the combo

thanks
kevin

Nov 13 '05 #1
4 1146
"kevcar40" <ke******@btinternet.com> wrote in message
news:11********************@z14g2000cwz.googlegrou ps.com...
Hi
i have a table the fields are
company contact phone num

on a form i have a combo box that selects from the list of companies,
i also have a several text boxes.
is it posible to have the value of the contact and phone_num assigned
to thier own textbox depending on what is selected in the combo

thanks
kevin


You mean you have multiple contacts per company with each contact having his
own phone number? Normally you would use a subform for this provided your
table structure allows multiple contacts - that is, you would have
tblCompany and tblContact.
Nov 13 '05 #2
"kevcar40" <ke******@btinternet.com> wrote in message
news:11********************@z14g2000cwz.googlegrou ps.com...
Hi
i have a table the fields are
company contact phone num

on a form i have a combo box that selects from the list of companies,
i also have a several text boxes.
is it posible to have the value of the contact and phone_num assigned
to thier own textbox depending on what is selected in the combo

thanks
kevin


You mean you have multiple contacts per company with each contact having his
own phone number? Normally you would use a subform for this provided your
table structure allows multiple contacts - that is, you would have
tblCompany and tblContact.
Nov 13 '05 #3
See if this article helps:
http://www.mvps.org/access/forms/frm0058.htm

--

Ken Snell
<MS ACCESS MVP>

"kevcar40" <ke******@btinternet.com> wrote in message
news:11********************@z14g2000cwz.googlegrou ps.com...
Hi
i have a table the fields are
company contact phone num

on a form i have a combo box that selects from the list of companies,
i also have a several text boxes.
is it posible to have the value of the contact and phone_num assigned
to thier own textbox depending on what is selected in the combo

thanks
kevin

Nov 13 '05 #4
"Brian Wilson" <bw*****@ease.co.uk> wrote in message
news:di**********@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com...
"kevcar40" <ke******@btinternet.com> wrote in message
news:11********************@z14g2000cwz.googlegrou ps.com...
Hi
i have a table the fields are
company contact phone num

on a form i have a combo box that selects from the list of companies,
i also have a several text boxes.
is it posible to have the value of the contact and phone_num assigned
to thier own textbox depending on what is selected in the combo

thanks
kevin

Just re-read the question - your mention of 'several textboxes' threw me
(don't you mean exactly 2?)
Ken Snell's answer would seem to do the trick.
Nov 13 '05 #5

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

Similar topics

1
by: Daniel Hill | last post by:
OK, I have very, VERY basic background knowledge of VB6 and have now upgraded to VB.NET and now I'm struggling to bring up the forms I want. What I am looking to do is to have a click a command...
1
by: Mike | last post by:
I have a combo box and a text box. Text to be display will be contigent upon what is selected via the combo box. How do I do this? I put the following code in the text box object: var a =...
4
by: meganrobertson22 | last post by:
Hi Everyone- I have a question about how to add and then use the "All" selection in a combo box. I am trying to figure out how to: (1) add "All" as a selection to a combo box and then (2)...
4
by: Mark L. Breen | last post by:
Hello Guys and Galls, I use combos on my forms. The code to initialise the combos is as follows Dim dsPIDTypes As DataSet dsPIDTypes = PartDB.GetPIDTypes ' Returns a dataset object...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
0
by: Tom | last post by:
I have some very strange issues with combo boxes on a tab control. Here's the scenario: I have a Windows Forms form that has a tab control on it, with two (2) tabs. Tab 2 happens to have a number...
4
by: Dave | last post by:
I wasn't sure how to search for previous posts about this, it felt real specific. Ok so here's the database & problem: I have 4 combo boxes: cboServer, cboPolicy, cboDB, and cboApplication. ...
6
by: =?Utf-8?B?amVmZmVyeQ==?= | last post by:
i need help with a combo box and this same code works on my first tab with a combo box. The error or problem i have is this code causes an index out of range error when i run it on my second combo...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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...

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.