473,385 Members | 1,400 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,385 software developers and data experts.

How to combine a subform table to selections made in a combo box. And more questions.

Hey, first of all I want to state that I am very new to using Access and therefor the question might be relevantly easy to solve but I have spent hours thus far to find the answer online and in Access 2000.

Question uno (1)
I have a table with around 60,000+ lines which gets updated every week. There has to be certain selections so I and others can get the relevant information ( the info we need) in just a few clicks.

I have made around 6 combo boxes that refer to each others selection i.e. if box 1 selects A box 2 only shows the possibly entries with the A value of box 1.

Now I am trying to create a subform based on the same table where combo box 1 till 6 get their info from. I would like the AfterUpdate event of combo box 1 , 2 ,3 ,4 5, 6 requery the subform table. Well that isn't that hard to do, what I find utterly annoying is that I have no clue how to make the subform look at the values entered / selected in the combo boxes? As I tried to enter in recordsource a select query WHERE [table]![col] like [Forms]![form]![combo] which resulted into #name errors.

Question 2
if I have a table like :
ID DATA MORE
Name Peter
LOC UK
PHON 111..
Name Walter
LOC US
PHONE 222..
etc. etc.
And I want to filter this on for example NAME, LOC, PHONE. Creating combo1 wouldn't be that hard, letting it search for name, group by and voila.

For the LOC (combo2) it would be harder (thus hard I dont know how too, I have a easier, but less beautifull solution atm)as it should check the choice made in combo1 and select all LOC that have the same NAME as selected in combo1.

For combo3 it would be similar to it 2.

I hope any of you would be so kind to help a new one out since I am eager to learn acces inside out. If necessary I can upload a sample database so you have a better idea of what my problem is.

Thanks for the help, hopefully in the near future I can join you lot with handing out information to newer users.

Kind regards!
Aug 16 '10 #1
4 1370
NeoPa
32,556 Expert Mod 16PB
Hi Ploepsie. Welcome to Bytes!

Let's start with a couple of basics. First we normally post separate questions in their own threads. Things can get complicated otherwise. As these two seem very general at the moment and overlap somewhat, we'll leave this as one for now, but with a heads up that you may need to fork the second one out at a later stage when we have a clearer understanding of where we are.

Secondly, this is posted in the SQL Server forum, but it's an Access question. I'll move it across for you.
Aug 16 '10 #2
NeoPa
32,556 Expert Mod 16PB
As far as the technicalities of the question goes, I'd direct you first to Example Filtering on a Form. There is a database in there to download and play with. It also discusses some of the issues you are struggling with related to filtering forms. You should also consider seriously whether a subform is actually required. It seems to me at first glance that a single form with unbound filter controls in the Header section and bound data controls in the Detail section (as illustrated in the linked article) would suit you perfectly.

Let us know when you're comfortable with these concepts and then we can discuss cascading the filtering, or limiting the filter options in the unbound ComboBox controls based on selections made from other of the ComboBoxes.
Aug 16 '10 #3
sorry for posting it in such way. I will remember it for the next time I make a topic. Also I was looking through the directory for my question and this one seemed the most fitting :P. haha, excellent example of my knowledge of access. But hey, we got to start somewhere.

I'll check the example DB out right now, thanks for the help. And I'll comment back afterwards!

Good day,

Ploeps
Aug 16 '10 #4
NeoPa
32,556 Expert Mod 16PB
Sounds good.

In truth this is such a commonly asked question (as is the belief that subforms are required when that's almost never true) that you will gain much important understanding when you see and comprehend how this can be done.

Have fun, and let us know when you need further explanations etc.
Aug 16 '10 #5

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

Similar topics

2
by: Menelty | last post by:
I have 2 datagrids on my page and each one has a template column which has a checkbox relating to each specific row. I usually have one on the page and use javascript to make sure there has been x...
0
by: bbrazeau | last post by:
Greetings, I am developing a database that tracks our products life cycle. It has a table with a memo field for describing revisions to the product. I have a form (form1) for entering revision...
3
by: Paul | last post by:
I have some option boxes and combo boxes that looks up values on a separate table (i.e. campus table with campusID & campus name fields) When I choose a selection from the combo box, it puts the...
1
by: JohnM | last post by:
Hi, I want to use a combo box to select from tables in a database. (Specifically, tables with a certain string in the name ... e.g MarkBk7l, Markbk8R etc.) How do I get a list of table into a...
12
by: John Salerno | last post by:
I've been looking around and reading, and I have a few more questions about SQLite in particular, as it relates to Python. 1. What is the current module to use for sqlite? sqlite3? or is that not...
2
by: pankajm | last post by:
Hello Friends: I am trying to populate a subform that has three fields that would pull view only data from a child table. The criteria for this data is to select the three fields where one of them...
9
by: natwong | last post by:
Hi All, I'm a newbie in terms of Access and some of its functionality . I've been stuck on this problem for a couple days, even after searching the Web, etc. Currently I have five combo boxes...
3
by: wideasleep | last post by:
Hello Everyone, I am looking for a way to trigger specific subforms to come up in a form through a combo box selection. For example purposes my selection in the combo box is CCP-03-081-FRM-14. The...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
2
by: bcarson86 | last post by:
Hi, I am trying to append a list of part numbers which is generated in a seperate table into a subform table which is on a main form. My main problem with getting it to work is that I need the part...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.