473,799 Members | 2,840 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS-Access Combo Box To List

Hi Group,

I was trying to link a combo box with a list control and having some
trouble with that. Could anyone please help me with that. Here's the
example of the scenario.

Combo Box ;- Country_Names (Pulls values from the country table(Just
the country_name value))

(Each country will have a table by itself, For Example USA will be a
table and it will have fields like "Area", Population", "States",
"Major Cities", "Males", "Females"...etc ." the fields vary from country
to country. USA will have 20 Fields where as Japan will have just 18
fields and UK will have 15 only.)

ListViewCtrl:- (This will display the fields pertaining to every
country. For Example,If I chose USA in the "Country_Na me" Combo box
then fields in the USA table needs to be displayed here.

I'm kind of having trouble to link these two controls "Combo Box" and
"ListCtrlVi ew". Could anyone please help me with this. OR is there any
other way to do this? All suggestions are highly appreciated.

Thanks
Arun

May 8 '06 #1
1 2016
On 8 May 2006 12:28:14 -0700, "Arun" <ar************ ***@gmail.com>
wrote:
Hi Group,

I was trying to link a combo box with a list control and having some
trouble with that. Could anyone please help me with that. Here's the
example of the scenario.

Combo Box ;- Country_Names (Pulls values from the country table(Just
the country_name value))

(Each country will have a table by itself, For Example USA will be a
table and it will have fields like "Area", Population", "States",
"Major Cities", "Males", "Females"...etc ." the fields vary from country
to country. USA will have 20 Fields where as Japan will have just 18
fields and UK will have 15 only.)

ListViewCtrl :- (This will display the fields pertaining to every
country. For Example,If I chose USA in the "Country_Na me" Combo box
then fields in the USA table needs to be displayed here.

I'm kind of having trouble to link these two controls "Combo Box" and
"ListCtrlView" . Could anyone please help me with this. OR is there any
other way to do this? All suggestions are highly appreciated.


Arun,

You need to spend some time familiarizing yourself with the concept of
normalization, as the design you have defined above is not.

An example might be three tables:

tblCountries
============
Country_ID
CountryName
CountryAbbrev

tblStatistics
=============
Statistic_ID
Statistic (eg., "Population ")

tblCountryStati stics
=============
fk_CountryID
fk_StatisticID
StatisticValue (eg. 310,000,000)

I note that the type of fields that you are describing are sometimes
numeric (Population) and sometimes can themselves be a list (Major
Cities). Unless you meant them all to be statistics in the sense that
the value associated with Major Cities is the NUMBER of Major Cities.

Assuming you meant the former, you have quite a challenge on your
hands designing a system whereby you can tell the difference between
the two at the right time (is it a list, or a statistic? hmmmmmm)

For now, I've stopped here on the theory that the values are always
statistics. If they aren't, then you need to define the next level
before going on.

Anyway, once you have the table design established, the values for
your countries combo box come from the tblCountries table.

And the values for your list view come from the combination of what
was selected in the combo box and the tblStatistics table.

Once you have both, you can then do what you will with the values from
the tblCountryStati stics.

You can, although I wouldn't recommend it, short circuit this design
by axing the middle table and modifying the third table as follows:

tblCountryStati stics
=============
Statistics_ID
fk_CountryID
StatisticValue (eg. the population)

This will still allow you to build your list view, but it is not as
flexible for further development.

mike

May 8 '06 #2

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

Similar topics

9
4250
by: CY FOK | last post by:
Hi I am planning to open a software company to develop client-server apps and web applications for my client. Now, i am in a difficult situation to determine what is the best platform i should use to develop the application for my end users. Should I use Java or MS.Net technology or should I mix both of them ? Basically, I have these criteria in mind before I decide which platform I should adopt : 1. Ease of use - which one is easy to...
3
3253
by: Christian McArdle | last post by:
REQUEST FOR DISCUSSION (RFD) unmoderated group comp.os.ms-windows.programmer.64bit This is a formal Request For Discussion (RFD) to create comp.os.ms-windows.programmer.64bit as an unmoderated world-wide Usenet newsgroup dedicated to the discussion of Microsoft Windows 64-bit programming. This is not a Call for Votes (CFV); you cannot vote at this time. Procedural details appear below. All followup discussion should be crossposted to...
7
2028
by: Joe Ross | last post by:
I've been working with Microsoft support for over 3 weeks now on an intermittent General Network Error we're seeing in our production environment between our ASP.NET application and SQL Server 2000. They are continuing to work on the issue, but it seems as if our progress is grinding to a halt. I asked this question on the newsgroups before going to MS but figured I'd give it another shot now that I have more information. The problem...
2
13536
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to execute a MailMerge to create mailing labels or customized letters. A label name known to MS Word MailMerge mailing label wizard may be used or a template file containing the field names Line1 thru Line5 for each record to be printed. If a...
1
1923
by: Ted | last post by:
I managed to get it installed OK, along side MS Visual Studio 2005 (with which I received it). During the install, I made sure I installed everything. I have developed a number of applications using MySQL v 5 and PostgreSQL, but I have not worked with MS SQL. Playing with it after installing it, and running through several tutorials, I generally like what I see, but there are a few issues (so far - I am sure others will crop up as...
1
2507
by: Dr T | last post by:
Hi! I downloaded MS Visual Web Developer 2005 Express Edition, MS .NET Framework SDK v2.0, and MS SQL Server 2005. Subsequently, I bought MS Visual Studio 2005 Professional Edition. 1) Are both the MS Visual Web Developer 2005 Express Edition and the MS Visual Studio 2005 Professional Edition used to develop .ASP applications?
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10482
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10251
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10225
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.