Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MS Access (http://www.go4expert.com/forums/ms-access-forum/)
-   -   Advanced report for checking targets (http://www.go4expert.com/forums/advanced-report-checking-targets-t18740/)

Arest 29Jul2009 20:20

Advanced report for checking targets
 
I have a deadline till Friday and really hope that you could help me. Sorry if I did something wrong..
Problem: I was asked to create a report. I have a table with projects (“projects”) and a table with targets (“targets”). Every project has a date, value and a type (two types). “Targets” has: month, target value and type. The idea is to create a report which shows if the target was achieved for each month. And if there are no projects in one of the months then the report should display “0”.
Table “Projects”
ProjectID, Project name, Customer, Date started, Value, Type
Table “Targets”
TargetID, Month, Target, Type (For example, for April target for funding project was £1000)
The output should look like on the picture attached.
I have no idea if it possible to implement using access (how to connect these 2 tables..). But I was asked to do it in access since the information about all the projects is already there.
Picture description (the act val – value of the project, the target value – value from the targets table).
I will be very happy to hear all the suggestions and advices.
Thank you!
img529.imageshack.us/img529/1879/52466453.jpg

nimesh 30Jul2009 01:10

Re: Advanced report for checking targets
 
Hi Arest,

What a name!!! Did someone arrest you OR you arrest someone :)

It would be great if you attach the access file here? (with dummy data)

Also , In table Projects, only Date Started is there, where is Date Stopped?
I believe you want to extract month from this date and then compare with the Targets table. Correct?

Also, in the image, what's the diff between Type 1 and Type 2?

Arest 30Jul2009 13:59

Re: Advanced report for checking targets
 
1 Attachment(s)
Thank you for the reply :)
You are right, I just want to compare the targets with actual value.. I attached a dummy query.

shabbir 30Jul2009 21:27

Re: Advanced report for checking targets
 
What type of file is accd file ?

nimesh 30Jul2009 22:03

Re: Advanced report for checking targets
 
Quote:

Originally Posted by shabbir (Post 53893)
What type of file is accd file ?

That's MS Access 2007 File, accdb

nimesh 31Jul2009 01:52

Re: Advanced report for checking targets
 
1 Attachment(s)
Hi Arest, you got pretty close.

First tell me, in the table Targets, why did you put the data type for month as text?

See the updated file with below changes.
1] Changed Data Type of Month_ in Targets to Number (for this I had to delete the relationship)
2] In the query "This is where the problem..." I removed the table Projects and added the Query "Projects Query"
3] Added a join in Months column of both

nimesh 2Aug2009 22:02

Re: Advanced report for checking targets
 
Arest: Did you check the updated file that I attached in the last post?


All times are GMT +5.5. The time now is 16:17.