I’m having a problem with my combo boxes. I have two tables, Courses, and Modules. The Courses table has a one-to-many relationship with Modules table. I’m trying to make a form that you select a course from a drop-down box, then all the modules that pertain to that course show up in a second combo box where you select the module you want. I don’t know how to get it so that it shows only the modules that are under that course. How do I do that? I noticed another thread on this board that talked about this but it didn’t give enough detail. I managed to do a parameter query, but I wanted to be able to select from a combo box – the parameter, instead of the program prompting my for a Course. How do I do this? I need some help fast. The entry clerk needs this for tonight! EEEEEEKKKKKKKK!!!
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Combo Box Problem–Help ASAP! (Access 2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Combo Box Problem–Help ASAP! (Access 2000)
- This topic has 10 replies, 4 voices, and was last updated 23 years, 2 months ago.
AuthorTopicWSJenniferS
AskWoody LoungerMarch 28, 2002 at 8:30 pm #368887Viewing 0 reply threadsAuthorReplies-
WSpatt
AskWoody LoungerMarch 28, 2002 at 9:26 pm #579159 -
WSJenniferS
AskWoody LoungerMarch 28, 2002 at 9:39 pm #579162 -
WSpatt
AskWoody Lounger -
WSJenniferS
AskWoody LoungerMarch 28, 2002 at 10:11 pm #579168Yes, when I select a course like Language Arts, then the second combo box should list the modules that have the Language Arts number. Ultimately I would like to have a database where I go into a form and select a school from a combo box. Then I would select a button whether the student I’m entering information for is Elementary, Junior or Senior. Then it would show the appropriate list in the first combo box (Course list for Elementary, for example), then after I select a course, it would show the modules under that course.
I do billing for distance learning, so the data entry clerk enters every students materials off of their packing slips. I then print off a report that shows all the materials, students names, and costs under each school.
I’ve attached a copy of my database.
-
WSFrancois
AskWoody Lounger -
WSFrancois
AskWoody Lounger -
WSpatt
AskWoody LoungerMarch 29, 2002 at 12:16 am #579177Jennifer,
Just a couple of things I would do differently are:
a) change the names your combo boxes to something more meaningful. eg Combo8 to ComboCourse and Combo12 to ComboModule. The reason is when you are in the code you don’t have to try and figure out what combo8 and combo12 really are.
I would have changed the SQL in combo12 to filter on the CourseNum, not setup Combo12’s source in the code of Combo8. The reason is if you have to change the SQL in Combo12 you would also have to change the SQL that is setup in Combo8.
These are just my opinions.
Pat -
WSJenniferS
AskWoody LoungerApril 2, 2002 at 4:32 pm #579980It works! Thank you so much, Francois. I looked over the code so I know what you did. I’m just a little confused as to what the code means. I’m very new at VB. I don’t know why you have LineNo and ModuleName in quotes, then the Price is separated from them with a & _ ??? Why are they separated? And why do you put & _ , what does that do? Sorry I’m so clueless.
-
WSNiklas
AskWoody LoungerApril 2, 2002 at 5:11 pm #579991Hi Jennifer!
If you want to have detailed info about how to do what you now have done. Take look at Microsofts Knowledgebase article Q97624 (http://support.microsoft.com/default.aspx?scid=kb;EN-US;q97624).
// Niklas
-
WSFrancois
AskWoody LoungerApril 2, 2002 at 6:41 pm #580020I could have done it in one line, but to read the line I have than to scroll the window to right and to see the beginning of the line back I have to scroll to left.
So I split the line saying with a space and an underscore that the line is continued on the next line.
As VB don’t like to split in the middle of doubbel quotes, I use the & to get the two parts of the string together.
Programaticly there is no reason to split. It’s just about reading the program without scrolling from left to right, and from right to left. Of course the place where you split depends form your monitor and resolution. I try, when possible, to split where there is a space, again for ease of reading,
-
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Who knows what?
by
Will Fastie
30 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
1 hour, 7 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
15 minutes ago -
Misbehaving devices
by
Susan Bradley
1 hour, 47 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
14 hours, 53 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
10 hours, 37 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
13 hours, 27 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
13 hours, 36 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
3 hours, 45 minutes ago -
Rufus is available from the MSFT Store
by
PL1
11 hours, 48 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 14 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
21 hours, 3 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
17 hours, 15 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
1 day, 10 hours ago -
Office gets current release
by
Susan Bradley
1 day, 13 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
3 days, 3 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 days, 11 hours ago -
Stop the OneDrive defaults
by
CWBillow
3 days, 3 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
3 days, 13 hours ago -
X Suspends Encrypted DMs
by
Alex5723
3 days, 16 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
3 days, 16 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
3 days, 16 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
3 days, 17 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
3 days, 5 hours ago -
Enabling Secureboot
by
ITguy
3 days, 12 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
4 days, 1 hour ago -
No more rounded corners??
by
CWBillow
3 days, 21 hours ago -
Android 15 and IPV6
by
Win7and10
3 days, 11 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
4 days, 13 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 16 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.