![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm working on a database app that tracks software metrics data for our team. In it is a talbe that contains a list of users and another that contains a collections of time records consisting of a date and number of hours worked (among other things). Our supervisor wants a report of those users that haven't entered anything for a given month. Now, I have a query that produces a list of users that did enter data and reports the number of hours each of them reported. A form provides the capability to select the month and year for the report and sets the Where condition for the report at print time. My problem is that for the users that haven't entered for the month in question I need to take the result of the aforementioned query WITH the where condition passed to it by the form and do an outer join (i think thats right, it's a left join in a test query I'm playing with) with the table that contains all the users. How do I get that into a report and still allow a user to provide the month/year input they need? Is there a way in SQL to 'nest' one select inside another? Is that even the right approach? It needs to be understood that this needs to be driven by a form. The users of the tool are not Access users and won't know how to build a query. I am able to put the queries together to get what I want, but I can't figure out how to implement it in a form that lets the user select a month and year and have the app spit out the list. Thanks. Bill Lugg, Engineer, MilStar AF Command Post Terminal Software Support OO-ALC/TISFE, Peterson AFB, CO |
#3
| |||
| |||
|
|
I'm working on a database app that tracks software metrics data for our team. In it is a talbe that contains a list of users and another that contains a collections of time records consisting of a date and number of hours worked (among other things). Our supervisor wants a report of those users that haven't entered anything for a given month. Now, I have a query that produces a list of users that did enter data and reports the number of hours each of them reported. A form provides the capability to select the month and year for the report and sets the Where condition for the report at print time. My problem is that for the users that haven't entered for the month in question I need to take the result of the aforementioned query WITH the where condition passed to it by the form and do an outer join (i think thats right, it's a left join in a test query I'm playing with) with the table that contains all the users. How do I get that into a report and still allow a user to provide the month/year input they need? Is there a way in SQL to 'nest' one select inside another? Is that even the right approach? It needs to be understood that this needs to be driven by a form. The users of the tool are not Access users and won't know how to build a query. I am able to put the queries together to get what I want, but I can't figure out how to implement it in a form that lets the user select a month and year and have the app spit out the list. Thanks. Bill Lugg, Engineer, MilStar AF Command Post Terminal Software Support OO-ALC/TISFE, Peterson AFB, CO |
![]() |
| Thread Tools | |
| Display Modes | |
| |