473,807 Members | 2,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Populating Combo Boxes

I have to write a web page wht three combo boxes, all three are to be
populated from a database. - there tables = Bulidings, Floors and Offices

The user will choose a 'Building' from the first combo, once it has been
selected, I need to populate the second combo box with the 'floors' of that
selected building. The user will then select the floor, which in turn will
then populate the office combo box for the user to select

Thanks

Derrick
Jul 23 '05 #1
2 1905
Derk wrote:
I have to write a web page wht three combo boxes, all three are to be
populated from a database. - there tables = Bulidings, Floors and Offices

The user will choose a 'Building' from the first combo, once it has been
selected, I need to populate the second combo box with the 'floors' of that
selected building. The user will then select the floor, which in turn will
then populate the office combo box for the user to select


Have a read of Matt's stuff here:

<URL:http://www.javascriptt oolbox.com/dynamicoptionli st/>

--
Rob
Jul 23 '05 #2
Derk wrote:
I have to write a web page wht three combo boxes, all three are to be
populated from a database. - there tables = Bulidings, Floors and
Offices


Well, you didn't actually ask a question, but I assume you're looking for
code to help accomplish this?

Check out: http://www.JavascriptToolbox.com/dynamicoptionlist/ for a library
and examples that might help you.

--
Matt Kruse
http://www.JavascriptToolbox.com
Jul 23 '05 #3

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

Similar topics

2
1799
by: Bill Brinkworth | last post by:
in vb.net 2005, i would like to pull up a name from a database (customers) (i can do this already), then after a name is selected from a combox box, to populate the form's text boxes with with data about that customer. I.E.: if john is selected from the combo, i would like to have his address, city, etc. filled out in the text boxes. I do not want to populate a listbox or datagrid.....I do these easy as pie in Access but i just can not do...
1
2004
by: Meaney | last post by:
Hi, I have a form with 4 combo boxes. They are used for selecting SchoolName (lists 28 names), LocationName (lists 4 geographic locations), EquipmentName (lists 14 equipment types) and ObservationNumber (lists count number 1-3). All of the the combo boxes contain two columns. The first column is visible and displays the common name that the user can identify. The second column is the bound column and is hidden. This column (2) lists the...
2
1928
by: billelev | last post by:
I have a form with two combo boxes. The first, cboAccount, allows a user to select an account. Ideally, the second combo box, cboSubAccount, will allow the user to select a Sub Account from a list of Sub Accounts for the particular Account already selected in cboAccount. In the SubAccount combo box 'Row Source' field I have the following query: SELECT ., .Account FROM WHERE .Account=Forms!frmReportFilter1!cboAccount ORDER BY ; ...
6
8285
by: zuchowra | last post by:
Hi everyone. I need help. I have a combo box in my form that i want to populate multiple text boxes after you select your selection in the combo box. Here is my set up. The Fields that need to be populated are lsited below but must be recorded to a new table. Gets info from Course occurance Table. Combo Box - Gets Information from Course Occurance Table. This table has all information regarding course information. Course ID: Course...
2
3273
by: Dave | last post by:
I have 3 tables of information feeding into 4 combo boxes on my main form (DR Form). I have as many list boxes (acting as text boxes) as there are fields in each one of the 3 tables. Once selecting from the combo box, I have all the combo boxes, using afterupdate, populating their respective list boxes. These text boxes are directly correlated to the combo box selection using SQL. Here is an example from the afterupdate event in the...
1
1250
by: djsmiler | last post by:
Hi All I am new to all this. I have a form which is pulling data from a table into a combo box. I am trying to get text boxes to show me the fields from the combo box. But not sure how to do it. From my table I am displaying branch code in the combo box and need to see Branch Name, Telephone Number,Brand,Area Code and Home Feeder. please can you explain in simple terms as I am a newbie.
2
4622
by: SHAWTY721 | last post by:
I have a form that contains two combo boxes that are related to each other. I need to find a way to populate my text box based on the criteria of the two combo boxes so the appropriate number appears in the text box.
1
1455
by: blip | last post by:
I’m not sure I’ve posted in the correct place however…. I’ve been trying to get this to work for some time now. I have created 10 combo boxes on an Excel form. The first one contains a name, the others only yes and no. When I choose a particular name I would like the other 9 boxes to automatically update yes or no corresponding to a sheet that contains all the values like a table would. So far my code:
11
3074
by: jgoodnight | last post by:
Hi, I have a form with three combo boxes: Area, Sub-Area, and Factor. I've set up the Sub-Area combo box to list only those areas that are part of the selected area. I've set up the Factor combo box to list only those factors that are part of the selected sub-area. For example, if I select area 1.0, the Sub-Area combo box displays 1.1, 1.2, and 1.3 as options. It does not show 2.1, 3.1, etc. If I select area 2.0, the Sub-Area combo box...
0
9721
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
10628
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
10373
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
10374
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
10113
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...
1
7651
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
6880
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3859
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.