473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

combobox lists as criteria

Hi everyone, im a total newb to access and this forum...actually any forum :P and I hope that u guys can help me out...this is the story so far:

I worked with this huge database in excel that eventually got too big (as in literally exeeding the row limit). I figured I needed to switch to access.
I imported all the "little" excel tables (monthly figures) into one huge table (yearly figures). To get to know what i wanted i made a pivot table.
This worked...all the information i needed was there...but it was so huge that it was impossible to quickly find what i wanted. I wanted to be able to filter the information per "route start" and "route end". This can be done in the pivottable, but the huge amount of data was also a problem here. There were hundreds of route start locations and route end locations. I want the following: When i choose a route start location i want the option to choose the end location to be filtered, since not all the end and start location link together.

I figured i needed to create some sort of form where i could choose a route start in the first drop down menu and that would then update the second drop down menu that contained the route end, etc etc etc...

Now the database and ideas are here...my question to you is...is this idea of mine even remotely possible? and of so...where do i start making this form of mine?

Many thanks from a desperate excel user..
May 25 '07 #1
5 1250
MMcCarthy
14,534 Expert Mod 8TB
Have a look at this tutorial and see if it helps

Cascading Combo/List Boxes
May 26 '07 #2
Thanks alot! I'll go have a look
May 26 '07 #3
I've read the guide and it looks promising, however, im using one table instead of two different ones...is it still possible?

when i select "route start" location i want the second box to only show the "route end" locations that are possible with the chosen start location.

my table (2006) is set up like this:
- [id] (default)
- [route start] (various city locations)
- [route end] (various city locations)

Thanks
May 27 '07 #4
nico5038
3,080 Expert 2GB
The number of tables isn't an issue here.
You'll only have to cascade on the proper field in the From-To table.

Just assume combo1 is holding the From locations and based on a query selecting the distinct From locations like:

Select distinct FromLocation from tblFromTo

Now use for combo2:

Select distinct ToLocation from tblFromTo <the where part to limit the FromLocations>

The <the where part to limit the FromLocations> is the part where the cascading combo's solution is used.
You can use a field reference from the form or add the WHERE dynamically. The choice is yours :-)

Nic;o)
May 27 '07 #5
NeoPa
32,556 Expert Mod 16PB
I've read the guide and it looks promising, however, im using one table instead of two different ones...is it still possible?

when i select "route start" location i want the second box to only show the "route end" locations that are possible with the chosen start location.

my table (2006) is set up like this:
- [id] (default)
- [route start] (various city locations)
- [route end] (various city locations)

Thanks
Try this one (Example Filtering on a Form.) Marvin. Hopefully it will make it clearer for you. If not, come back and let us know where you're stuck.
May 27 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: James Stroud | last post by:
Hello All, I find myself in this situation from time to time: I want to compare two lists of arbitrary objects and (1) find those unique to the first list, (2) find those unique to the second...
5
by: Steve | last post by:
I have an unbound combobox in the form header of a continuous form. The selection in the combobox sets the where clause in a querydef which determines QryPFrmInventoryManagement. The following code...
4
by: piet | last post by:
Is it possible to add an option ALL in the ist of a combobox that get its values from a table? Example: in the combobox are the items from the table "days": monday, th.... The chosen value...
3
by: Ray Holtz | last post by:
Access 2003 (2000 file format) question: When I run a form, it opens with only a combo box and a button to execute a query based on the criteria tha is selected in the combobox. Then I need...
4
by: simonmarkjones | last post by:
Hi all, I have 2 ComboBoxes The first has 3 choices Planning Building Control Planning & Building Control
2
by: Tom | last post by:
I have the following tables: TblState StateID State TblCounty CountyID StateID County
2
by: Don | last post by:
I've looked high and low for some code that will allow me to have a combobox with a flat borderstyle. I found a few examples, but nothing that was really usable for me. I had the following...
0
by: eselk | last post by:
I'm using Access 2000. I've got a basic look-up combobox on a form (moves to selected record on update). The key field and the look-up field are both indexed, and the speed if fast enough for me....
5
by: Rich | last post by:
Hello, I have a search application to search data in tables in a database (3 sql server tables). I populate 2 comboboxes with with data from each table. One combobox will contain unique...
2
by: Silgd1 | last post by:
Hey All; I have a form with a ComboBox. I populate the ComboBox with the following query: SELECT ., . FROM customers ORDER BY .; This query populates the comboBox with all the customer...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.