|
|
Final results
I'm a bit new to Access and trying to find my way around it.
I've created my tables and forms etc and i'm now trying to create reports
from the data that is now in the table.
I've created a query that does some calculations for me but i'm struggling
to get the information into the format / final results i want.
The query looks a bit like this:-
Date Name1 Name2 Name3 Name4 Name5 Name6 Name7 Name8 Rate
10/5 bob mike jim
10
10/5 mike bob
15
11/5 bill ted mike bob
10
11/5 jim ted bill bob fred dave zac
rob 20
11/5 bob
10
The final results i want would look like this:-
I want to apply a date filter (from to) eg
Between dates 10/5 to 11/5
Bob = 60
Mike = 35
Jim = 30
Ted = 30
bill = 30
fred = 20
dave = 20
zac = 20
rob = 20
Total = 285
Hope all that makes sence.......
Do i need to do another query to collate the names or is there a way to make
a report that wil do that?
|
|
0
|
|
|
|
Reply
|
Utf
|
5/20/2010 7:47:01 AM |
|
Ooops that example looked right when i first typed it, looks a bit confusing
now lol
Basically it would be
Date Name1 Name2 Name3 >>>> to Name8 Rate
10/5 bob mike Jim >>>> 10
and so on.....
If that makes it clearer
"Charno" wrote:
> I'm a bit new to Access and trying to find my way around it.
>
> I've created my tables and forms etc and i'm now trying to create reports
> from the data that is now in the table.
>
> I've created a query that does some calculations for me but i'm struggling
> to get the information into the format / final results i want.
>
> The query looks a bit like this:-
>
> Date Name1 Name2 Name3 Name4 Name5 Name6 Name7 Name8 Rate
> 10/5 bob mike jim
> 10
> 10/5 mike bob
> 15
> 11/5 bill ted mike bob
> 10
> 11/5 jim ted bill bob fred dave zac
> rob 20
> 11/5 bob
> 10
>
>
> The final results i want would look like this:-
>
> I want to apply a date filter (from to) eg
>
> Between dates 10/5 to 11/5
>
> Bob = 60
> Mike = 35
> Jim = 30
> Ted = 30
> bill = 30
> fred = 20
> dave = 20
> zac = 20
> rob = 20
>
> Total = 285
>
> Hope all that makes sence.......
> Do i need to do another query to collate the names or is there a way to make
> a report that wil do that?
>
>
>
>
|
|
0
|
|
|
|
Reply
|
Utf
|
5/20/2010 8:05:01 AM
|
|
It looks like you have a bad table design. If you have to work with that
structure you are going to need a union query to normalize the data and then
use the Union query to get your desired results. Union queries can only be
built in the SQL view.
SELECT [Date], Name1 as Worker, Rate
FROM [SomeTable]
UNION ALL
SELECT [Date], Name2, Rate
FROM [SomeTable]
UNION ALL
....
UNION ALL
SELECT [Date], Name8, Rate
FROM [SomeTable]
To get the final result you would use the above query as the source in a
totals (aggregate) query.
SELECT Worker, Sum(Rate) as Total
FROM [TheUnionQuery]
GROUP BY Worker
If you can only build queries in the query design view, post back and I will
try to lead you through building the Union query and the totals query.
John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
Charno wrote:
> I'm a bit new to Access and trying to find my way around it.
>
> I've created my tables and forms etc and i'm now trying to create reports
> from the data that is now in the table.
>
> I've created a query that does some calculations for me but i'm struggling
> to get the information into the format / final results i want.
>
> The query looks a bit like this:-
>
> Date Name1 Name2 Name3 Name4 Name5 Name6 Name7 Name8 Rate
> 10/5 bob mike jim
> 10
> 10/5 mike bob
> 15
> 11/5 bill ted mike bob
> 10
> 11/5 jim ted bill bob fred dave zac
> rob 20
> 11/5 bob
> 10
>
>
> The final results i want would look like this:-
>
> I want to apply a date filter (from to) eg
>
> Between dates 10/5 to 11/5
>
> Bob = 60
> Mike = 35
> Jim = 30
> Ted = 30
> bill = 30
> fred = 20
> dave = 20
> zac = 20
> rob = 20
>
> Total = 285
>
> Hope all that makes sence.......
> Do i need to do another query to collate the names or is there a way to make
> a report that wil do that?
>
>
>
>
|
|
0
|
|
|
|
Reply
|
John
|
5/20/2010 1:21:31 PM
|
|
|
2 Replies
174 Views
(page loaded in 0.149 seconds)
Similiar Articles: Percentage between two numbers - microsoft.public.excel.misc ...> >> > > >> > This is how i need the final result to look: > >> > 2394 34 -98,58% > >> > 34 2394 +98,58% > >> > > >> > Can this be done? > >> > Thanks! formula to add a number to a long string ** - microsoft.public ...I'm not quite sure how to best describe this: I need a formula that will take the example below and return the "final result" Col. A = 24.43.2... 0 Decimal places/round function. - microsoft.public.access ...You might try using a different alias like -- Final Results: Round([Results],0) Or try Final Results: Results: Int([Results]) -- KARL DEWEY Build a little - Test a ... Open Excel from a VB6 application then use "Find and Replace ...It will be a pleasure to show you the final result if you wish to... Happy New Year and all the best! "joel" wrote: > > You can use the standard built in ... Convert UTF-16 Unicode to UTF-8 Unicode? - microsoft.public.excel ...I usually open two files from VBA (one input binary and one output no binary) if I don't need the final results in a spreadsheet. Otherwise, I open just one file as ... Finding last accessed point of time to a list of files - microsoft ...As a final result I will separate (informly) the used files from the not-used files in the application-session. Any ideas out there? Best regards Snoopy Error 6 Overflow - microsoft.public.vb.general.discussion ...Even if you somehow squash the final result back into an > Integer, you'll get this problem if the intermediate result goes over > the 32K range of an Integer. Copying Query Results into a Table - microsoft.public.access ...Desired Final Query Result (superlist): Employee | Case ID | Joe ... Kevin I can copy a Word table into Access. That doesn't mean the data will be organized ... GPO's Not Replicating - microsoft.public.windows.server.active ...... dependent services) state...passed Checking NtFrs related Registry Keys for possible problems...passed Checking Repadmin Showreps for errors...passed Final Result ... Populating a text box from query results - microsoft.public.access ...... is acoomon method to drill down (using the combo RowSource queries) to a final ... it >displays, and cboTitle uses cboGenre and cboAuthor to filter it's results. > On ... Final Results Fitness Gilbertsville PAPennsylvania Health Club, weight loss, fitness center, Karate school, Yoga studio, Jiu-Jitsu classes, senior fitness Tennis - Barclays ATP World Tour Finals - ResultsATP World Tour 250 ATP World Tour 500 ATP World Tour Masters 1000 Barclays ATP World Tour Finals 1500 Grand Slam 2000* ^ Davis Cup 625^ DI T&F Championships - women final results - NCAA.comThe Official Website of the NCAA, part of Turner Sports Digital, part of the Turner Sports & Entertainment Digital Network. The most comprehensive coverage of NCAA ... Final Results Fitness in Gilbertsville | Final Results Fitness ...Find Final Results Fitness in Gilbertsville with Address, Phone number from Yahoo! US Local. Includes Final Results Fitness Reviews, maps & directions to Final ... Panther Securities - Final Results - Yahoo! Finance UK'Panther Securities - Final Results' on Yahoo! Finance UK. Panther Securities P.L.C. ("Panther" or "the Company") Final Results for the year ended 31 December 2011 ... 7/12/2012 2:41:26 AM
|
|
|
|
|
|
|
|
|