A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

filtering data in a combo box based on a selection in another comb



 
 
Thread Tools Display Modes
  #1  
Old September 28th, 2004, 07:31 AM
SteveMc
external usenet poster
 
Posts: n/a
Default filtering data in a combo box based on a selection in another comb

I am trying to create a database to catalog my software collection. What I
would like to do is select a catagory from a combo box and have the combo box
next to it populated with the sub categories related to the parent category.
ie. the user would select the category "business and finance" and the combo
box next to it would display the relevant sub-categories (financial,
calculators, etc.) and then when you selected one of those sub-categories it
would populate a third combo box with a final level of categories.
Suggestions?

Thanks in advance...
SteveMc
  #2  
Old September 28th, 2004, 12:07 PM
Dan Artuso
external usenet poster
 
Posts: n/a
Default

Hi,
Use the value in your first combo as criteria in the query that populates
your second combo.
So you'd have something like this as criteria in the query:
Forms!yourForm!yourFirstCombo

Then, in the AfterUpdate event of the first combo (it's always
better when you supply the names of your controls!) requery the second:

Me.yourSecondCombo.Requery

--
HTH
Dan Artuso, Access MVP


"SteveMc" wrote in message ...
I am trying to create a database to catalog my software collection. What I
would like to do is select a catagory from a combo box and have the combo box
next to it populated with the sub categories related to the parent category.
ie. the user would select the category "business and finance" and the combo
box next to it would display the relevant sub-categories (financial,
calculators, etc.) and then when you selected one of those sub-categories it
would populate a third combo box with a final level of categories.
Suggestions?

Thanks in advance...
SteveMc



  #3  
Old September 28th, 2004, 01:00 PM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default

See sample code in The Access Web:

http://www.mvps.org/access/forms/frm0028.htm

--
HTH
Van T. Dinh
MVP (Access)


"SteveMc" wrote in message
...
I am trying to create a database to catalog my software collection. What I
would like to do is select a catagory from a combo box and have the combo

box
next to it populated with the sub categories related to the parent

category.
ie. the user would select the category "business and finance" and the

combo
box next to it would display the relevant sub-categories (financial,
calculators, etc.) and then when you selected one of those sub-categories

it
would populate a third combo box with a final level of categories.
Suggestions?

Thanks in advance...
SteveMc



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtering based on selection largosama Worksheet Functions 1 September 24th, 2004 08:01 PM
SQL view of messed up action queries Kendra Running & Setting Up Queries 2 August 31st, 2004 09:53 PM
Filtering records in a form based on data in a subform or query. jbuck Using Forms 0 August 5th, 2004 02:51 PM
Don't allow select in combo box Sue-Fong Using Forms 7 July 21st, 2004 02:06 PM
Data Selection keyboard shortcuts -Source Data Window Carol Hackney Charts and Charting 1 November 2nd, 2003 02:44 PM


All times are GMT +1. The time now is 03:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.