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

combo box filter on subform

Access 2010 -
I have a form, let's call it "Projects" with a subform "status". These are linked to Projects and Status tables in a one to many relationship. Everything is working fine there.

The Projects form has a customer name and a project code text boxes, and if I navigate to different projects, the appropriate status records are available in the subform. I'm trying to get a combo box filter to work. If I put a combo box on the subform, and use the "find a record on my form" wizard. I pick a date value from my status table as what I want to see, since I'm trying to be able to pick from the different status dates for this project. However, when I view the form (by opening the master form, not the sub by itself) I get every single record from the status table, not just the ones that are linked to the displayed project in the main projects form.

I tried going into the row source for the combo box and adding the projects table, then setting a criteria for the project based on forms!projects!project_code. It does give me just one record, but it's just the first record of the query and is not the right filter.

Any thoughts?
Feb 8 '12 #1
1 1990
NeoPa
32,556 Expert Mod 16PB
See what you can do after playing with Cascaded Form Filtering. It should have all you need, but if you still find anything confusing come back and explain (clearly) what that is.
Feb 8 '12 #2

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

Similar topics

0
by: Colin | last post by:
In access 2000 I need to filter records in a Subform by pushing a button on a command button located on the Main form. The Main form is blank. Its only purpose is to contain the subform which is...
1
by: martim07 | last post by:
I am doing all of my coding with VBA.I have a Combo Box that is populated with values from a field. When I click on any item in the Combo Box it brings up a sub form. It works fine except for the...
1
by: dmkeith2 | last post by:
OK, This is what I want to do. I have a main table and several other tables with referential integrity based on the tax ID number. My main form is based on the Main Table, I have a subform...
3
by: favor08 | last post by:
tara is the name of my table and the is what I have in the qry: Field TARA.* Field NetC criteria = 0 Field PendDte criteria Is null Field EffDateCompare: Year() & Month() Criteria:...
1
by: wayniac | last post by:
What I am trying to do is select an item from the combo box and have it displayed in the subform. Then once you scroll though the subform and find the field you like, click on it and it will...
2
daniel aristidou
by: daniel aristidou | last post by:
hi i have already tried using the cascading updating advice from a previous post but it tells me that.the subform is not compatible with the command i typed in .can anyone tell me exactly how to...
13
by: shreyansghia | last post by:
Hello , I am using MS Access 2007. Now if i ve a subform based on a table, filtering the subform is extremely easy . I only ve to click the relevant column head on the subform and check/uncheck...
2
by: darnnnel | last post by:
Hi everyone! I’m not sure how to even begin. I have a form and a subform and they are not linked. I would like to have a button on the form that would only change the data in the subform,...
9
by: darnnnel | last post by:
Hello everyone. i have a fom and subform (they are not linked).The subform has a date field named StartDate. i have a button on the form that when clicked will change the recordset of the subform to...
2
by: wassimdaccache | last post by:
Hello Working on access 2007. My database file is made on access2003. I have 2 forms. (categories) and (Productlistsearch). The Productlistsearch form contain a subform called "Products...
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...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.