Re: Perplexing Query Results

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Stefan..

Thank you sir. That is what I was doing wrong and suspected that the lack
of a relationship between fields was an issue. Funny thing though.. Adding
a relationship between the Yr field did not work. It took the addition of
the Mth field to make this work correctly. Any additional thoughts/insight
on why that may be the case?

Thanks,
Jim
--
If it works then you are doing something right!!


"Stefan Hoffmann" wrote:

hi,

That Crazy Hockey Dood wrote:
FROM [Admin Activity_tbl], [Call Center Activity_tbl], CCOPS_tbl, [Pub
Care_tbl], tblPayroll
WHERE ((([Admin Activity_tbl].Yr)=[Forms]![Monthly CPT]![Yr]) AND (([Call
Center Activity_tbl].Yr)=[Forms]![Monthly CPT]![Yr]) AND
((CCOPS_tbl.Yr)=[Forms]![Monthly CPT]![Yr]) AND (([Pub
Care_tbl].Yr)=[Forms]![Monthly CPT]![Yr]) AND
((tblPayroll.Yr)=[Forms]![Monthly CPT]![Yr]));
This tells me that I have something wrong with the first query. I guess
that I could use separate queries if need be but that doesn't seem efficient
to me. Help.
You have a full join in your query without further restrictions in the
WHERE clause.

1. Create a new query, switch to the design view.
2. Add your tables.
3. Build the relationships between these tables.
4. Activate the grouping and enter your Sum() formula.

The relation should be at least between the year fields.


mfG
--> stefan <--

.



Relevant Pages

  • Re: HOVER TECHNIQUE
    ... funny. ... >how just typing on a keyboard can kind of convey things. ... But if I query a recordsource, ... >Edmonton, Alberta Canada ...
    (microsoft.public.access.formscoding)
  • Re: putting the total row at the end of a cross tab query
    ... > Funny thing is that it looks exactly the same in the design view but ... a few properties about a table and/or query that you do not see in the GUI. ... Column order, Column width, Hide/Show of Columns, Sorts and Filters applied ...
    (microsoft.public.access.queries)
  • Re: [PHP] PHP & MySQL Problem
    ... The funny thing is that all vars are being received except for the last two: ... [PHP] PHP & MySQL Problem ... The query then just goes like ... script" - I would guess the relevant part is not the query but rather ...
    (php.general)
  • Re: FOAK: Death certs for lost at sea
    ... Contact the Royal Naval Association regarding your query, ... actually die killed in combat, ... And some cunt on here thinks it's funny? ... So now you've got the gag, you want to start on me then? ...
    (uk.rec.motorcycles)
  • Re: macro set value subform record source error
    ... That looks funny... ... Are you asking the user to type in the name of a query, or an SQL expression, or what? ... Getting message " You tried to run a visual basic procedure to set a property or method for an object. ...
    (microsoft.public.access.macros)