PC Review


Reply
Thread Tools Rate Thread

Access - Combine 2 filters

 
 
New Member
Join Date: Oct 2010
Posts: 2
 
      9th Oct 2010
Hello,

I'm trying to get the most out of an Access Database I created, but as I'm no expert at all programming, I got stuck on one of my forms.
I have 2 tables, the 1st called Team, where I have the following data: Id, Name, Surname, Title. The second table is called Hours, where I want to store informations about the hours every team member spends on every proyect, so the data are: PM (project manager), Date, Project, Hours.
To fill in the hours, I created a form Dedication with a subform Hours_per_Project. In the form I show the name of the user, in the subform I show the data of the table Hours. On opening the form, a query asks the identification of the user, showing only his data. As I not only wanted to filter on the name, but also on a certain date, I created a new field in the form to display the chosen date. To choose the date I created a new form, with a pop-up calendar, that opens on opening the parent form. Once chosen the date in the calendar, the calendar closes and shows the date in the created field in the parent form. Until here, everything works fine. However, I'm not able to filter on the date to show in the subform only the hours dedicated that day. But I'm not able to make it work: if I manage to filter on the date, the first filter (on the user) is lost. How can I make it work with 2 filters? My programming skills are limited, so I would appreciate it very much every help you can offer. Thanks.
 
Reply With Quote
 
 
 
 
New Member
Join Date: Oct 2010
Posts: 2
 
      25th Oct 2010
Hello again,

For those who read my question and have a similar problem, I've found a way around it.
This is what I did:
First I created a table with all the days of the year. Then I created a query combining the data form my table called Team with the one with the days of the year. That query I use to build my form. To be able to use a pop-up calendar to fill in the dates, I substituted the dialog boxes of the query for forms (giving them the same aspect as a dialog box).
It's a bit more complicated than I expected, but finally it works completely as I expected. For the ones who struggle with a similar problem, if you leave your question in this thread, I'll give you more details.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2007 and filters Jonathan Crawford Microsoft Access 1 18th Aug 2007 10:43 AM
Access 2007 Filters =?Utf-8?B?ZGVsb3Jlcw==?= Microsoft Access 0 15th Aug 2007 09:08 PM
MS Access Filters jonwongfanclub@gmail.com Microsoft Access Form Coding 1 19th Jul 2006 04:43 PM
MS ACCESS Filters =?Utf-8?B?R2Vvcmdl?= Microsoft Access 3 6th Jul 2005 05:17 PM
How to Get Filters to Work in Access 2000 from Access 1997 Database DOYLE60 Microsoft Access VBA Modules 2 17th Dec 2004 08:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:13 PM.