Combo Box 1 Displays a query/list with 2 columns: - SELECT Classes.CLASS_DESC, Judges.Judge, * FROM Classes;
Combo Box 2 Displays a query/list: - SELECT Judges.Judge FROM Judges;
I want Combo Box 2 to change based on Combo Box 1 answer. Combo Box 2 will still be editable but its default will be based on Combo Box 1.
Example:
I have 250 Classes and 6 Judges. The number of juges will change from time to time and can be as many as 30. The Classes are each assigned a Judge and the assignments can change based on the number of entrants in a classs - ie if a class gets to large I may need to reassign judges to relieve overwork.
Combo Box 1 displays:
Alpha | Bobby
Beta | Bobby
Blue | John
Gold | John
Red | Dan
...
Combo Box 2 displays:
Bobby
John
Dan
Ed
Jim
Bill
I want this to happen:
When you choose "Gold" in Combo Box 1
Combo Box 2 changes to "John" as the default choice.
20 2977
We have an Insights article on cascading combo/list boxes which takes you through in detail how to change the rowsource of the second combo using the after-update event of the first combo to trigger the change.
The process is straightforward , but fairly involved when you look at the steps involved, so the Insights article is a very good way to learn how to do it.
-Stewart
I used the example and pasted the code given then edited it for my data. I don't seem to understand it.
Attached is my database.
When I update the Combo Box "Class"
I need Text Box "Judge" to change.
***I just simplified my database and this should make it simpler, but I still don't get how to update my TEXT BOX based on the answer from the COMBO BOX.***
It seems Judges are very few only 6, therefore You can use Listbox instead of Combobox for judges and set selections due to Classes Combobox as clarified on the attachement below and you are done!
Mark it as answered if it has!!!
I must be tired of looking at this. I just don't get it. I tried your fix but seems too odd for me to follow. I'm not very good at this.
I just modified my database and removed [Groups] completely. This should (in my mind) make the problem easier. Now when I change the Combo Box "Class" it needs to Update the Text Box "Judge".
What I can't seem to figure out is how to select the value of the second column in the Combo Box.
I have just attached the database for you to use, I have decided to use listbox and not a textbox as you did.
Mark it as answered if it solves your problem
The fix you made does not update as you change records.
Also, you can't change the choice in the list box later.
We have an Insights article on cascading combo/list boxes which takes you through in detail how to change the rowsource of the second combo using the after-update event of the first combo to trigger the change.
The process is straightforward , but fairly involved when you look at the steps involved, so the Insights article is a very good way to learn how to do it.
-Stewart
I used this example but my application does not match this example. I do not need to change the RowSource just the Default Choice.
Open the db and then select one Class_Desc it will update the Judge field automatically, I have tried it before being sent 2 u. Ofcourse we cannot change edit the value in the Combobox but you can do so if you want.
Just read it carefully and apply the changes if wish.
This is just the alternative of how you can approach your design, the real choice is yours.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Robert Oschler |
last post by:
How can I get "parse" errors, not runtime errors, output to a log file of my
choice (and preferably in a format I can choose)? I'm running PHP4.
Thanks.
|
by: tobhamlet |
last post by:
If one is using a query as a Row Source on a Form, is there a way to
set up a blank space, or to insert the word "ALL" in a combo box that
represents ALL combo box row items.
The scenario is as follows. I have two combo boxes. One for
COURSECODEs and one for SECTIONCODEs. I select a COURSECODE from teh
1st combo box. Then, from the 2nd combo box I want to select ALL
SECTIONCODEs (associated with the COURSECODE).
This is for MS Access...
|
by: lottaviano |
last post by:
I am using Access 2002 and have two tables (Main and Actions) linked
(in Relationships) on one field "CAL_ID" (primary key in Main Table).
Main Table is a list of equipment. Actions Table lists actions
performed on these pieces of equipment (calibration, cleaning, etc.) so
there are many records per every one record in the Main Table.
I have a form based on Main Table, containing a subform for Actions
Table. This is used for data...
|
by: Xiangliang Meng |
last post by:
Hi, all.
I see a very strange fragment code today.
Uint32 enum
{
a = 100;
b = 200;
};
NOTE: Uint32 is defined to be 'unsigned' in other source files.
|
by: Ken Brady |
last post by:
I'm on a team building some class libraries to be used by many other
projects.
Some members of our team insist that "All public methods should be virtual"
just in case "anything needs to be changed". This is very much against my
instincts. Can anyone offer some solid design guidelines for me?
Thanks in advance....
| |
by: Mark |
last post by:
I first read about this in mvps.org, but the code he gives doesn't seem
to work for my form. I"ll post my code below. I'd love it if someone
could point out the error in my code. BTW, this is my very first time
here and I will look forward to sifting through all of the posts and
answers. Thanks in advance!!!
I don't get an error when using the value option...but if I switch to a
Table/Query, I get the following error:
|
by: cyber0ne |
last post by:
I'm having a bit of trouble adding records to a local .DB file (using a
Paradox connection string). I checked the file permissions, and for
testing purposes set Everyone to Full access. But it seems that I can
add one and only one record to the table, any other attempts to insert
a record generate the error:
"Operation Must Use An Updatable Query"
I can access the table via other means, delete that one record, try
again, same...
|
by: WaterWalk |
last post by:
I've just read an article "Building Robust System" by Gerald Jay
Sussman. The article is here:
http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf
In it there is a footprint which says:
"Indeed, one often hears arguments against building exibility into an
engineered sys-
tem. For example, in the philosophy of the computer language Python it
is claimed:
\There should be one|and preferably only one|obvious...
|
by: cleary1981 |
last post by:
I have adapted code from http://dunnbypaul.net/js_mouse/
I want to use a button to create new draggable divs but i keep getting error "is null or not an object"
heres the code
<html>
<head>
<title>Drag and drop module</title>
<style type="text/css">
#canvas {
|
by: geolemon |
last post by:
I'm trying to perform an update, and I can't avoid this error - I've tried this query what must be 5 different very fundamentally different ways now.
Arg.
I used to be a DBA in large DB2 and SQL Server environments, but I'm a little rusty, plus I'm very new to Access.
I am trying to perform a calculation based on information in a few tables, and use the result to update another.
Should be simple, here's what counts from the tables...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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,...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |