Solved

Access 2003: Combo box based on results from ComboBox

Posted on 2011-09-07
9
201 Views
Last Modified: 2012-05-12
I have a combobox containing a query criteria referring to the results of another combo box.

ie.,

cboMonth: Choose the Month
cboEvent:  Choose the Event based on cboMonth

What do I need to do to update the cboEvent contents if you change cboMonth?
trying requery isn't helping me unless I'm placing it in the wrong event.

Thanks
0
Comment
Question by:OnsiteSupport
  • 5
  • 2
  • 2
9 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 250 total points
ID: 36498467
In the AfterUpdate event of cboMonth

Private Sub cboMonth_AfterUpdate

    me.cboEvent.Requery

End sub
0
 
LVL 75

Assisted Solution

by:DatabaseMX (Joe Anderson - Access MVP)
DatabaseMX (Joe Anderson - Access MVP) earned 250 total points
ID: 36498470


Private Sub cboMonth_AfterUpdate()
   Me.cboEvent.Requery
End Sub

0
 

Author Comment

by:OnsiteSupport
ID: 36498535
What are you guys in competition? LOL

Thanks again!
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 36498544
I think I deserve all the points!  ;-)
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 75
ID: 36498564
Mine is in BOLD to make it clearer !!!
0
 
LVL 75
ID: 36498578
Answers were post literally microseconds apart ... look at the ID's

36498467
36498470
0
 

Author Closing Comment

by:OnsiteSupport
ID: 36498591
MX should get the points because his ID is longer  AND his response was more sarcastic.
0
 
LVL 75
ID: 36498614
Now you're talkin' .... lol
0
 
LVL 75
ID: 36499103
"What are you guys in competition? LOL"
Man, it's a war zone out there Today!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now