Query Not Showing Desired Results - HELP

download the attached sample
 

Attachments

I've attached a database showing the query Iwas talking about previously. Hope this helps.

Q
 

Attachments

download the attached sample

Ah OK - thanks. I see what you've done. You've done it on StudentID is null.

I'll try this on my main DB and report back

Thanks again
 
I've attached a database showing the query Iwas talking about previously. Hope this helps.

Q

Ah OK - thanks. I see what you mean.

I'll try this on my main DB and report back

Thanks again
 
OK the query has worked but i'm having problems selecting a particular month.

I have created a search form with a combo box that list the FeeID.

However whichever feeID i select it comes up with the same result.

Again - i have 10 records. 5 with values above ZERO for Period 1 and five with nothing entered.

If i run the query on it's own - i get 5 records - so far so good.

However if i select period 1 using my cbo box - i get the 5 - good. But if i select Period 2 - i still get the same five.

Can someone help me on this please?
 
Upload Some data with fees table filled for different students for some months
 
Upload Some data with fees table filled for different students for some months

Thanks for your help on this.

I have attached a sample db.

If you open frmSearchqry -

For Period 1 of 2008 - i expect to see 8 records (as only one person has paid)
For Period 2 of 2008 - i expect to see 7 records (as only two people have paid)
For Period 3 onwards - i expect to see all the records (as no one has paid)

But it doesn't matter which one i select - i always get the seven records
 

Attachments

Open the form frmSearchqry and select the period query will open and show you the results as required by you
 

Attachments

Added two queries check their sql
In the first query i collected all the student fees which should be paid in the selected period
In the second query showed those students who had not paid using left join
 

Users who are viewing this thread

Back
Top Bottom