PC Review


Reply
 
 
zufie
Guest
Posts: n/a
 
      26th Aug 2010
Here is my code. When I delete the HSFT data the AllPrograms Report
those not return any values. That is, this query for which I provide
the code below returns the values for this report. Thanks, John

SELECT qryTotalAge.*, qryTotalRace.*, qryTotalEmploy.*,
qryTotalEducation.*, qryTotalIncome.*, qryTotAgeOthNR.*,
qryTotEducOthNR.*, qryHSFTageEdu.[SumOfQ1 <=12 Years], qryHSFTageEdu.
[SumOfQ1 13 Years], qryHSFTageEdu.[SumOfQ1 14 Years] AS [SumOfQ1 14
Years HSFTageEdu], qryHSFTageEdu.[SumOfQ1 >=15 years], qryHSFTageEdu.
[SumOfQ1 Other], qryHSFTageEdu.[SumOfQ1 No Response], qryHSFTageEdu.
[SumOfQ2 <=12 Years], qryHSFTageEdu.[SumOfQ2 13 Years], qryHSFTageEdu.
[SumOfQ2 14 Years] AS [SumOfQ2 14 Years HSFTageEdu], qryHSFTageEdu.
[SumOfQ2 >=15 years], qryHSFTageEdu.[SumOfQ2 Other], qryHSFTageEdu.
[SumOfQ2 No Response], qryHSFTageEdu.[SumOfQ3 <=12 Years],
qryHSFTageEdu.[SumOfQ3 13 Years], qryHSFTageEdu.[SumOfQ3 14 Years] AS
[SumOfQ3 14 Years HSFTageEdu], qryHSFTageEdu.[SumOfQ3 >=15 years],
qryHSFTageEdu.[SumOfQ3 Other1], qryHSFTageEdu.[SumOfQ3 No Response],
qryHSFTageEdu.[SumOfQ4 <=12 Years], qryHSFTageEdu.[SumOfQ4 13 Years],
qryHSFTageEdu.[SumOfQ4 14 Years] AS [SumOfQ4 14 Years HSFTageEdu],
qryHSFTageEdu.[SumOfQ4 >=15 years], qryHSFTageEdu.[SumOfQ4 Other1],
qryHSFTageEdu.[SumOfQ4 No Response], qryHSFTageEdu.[SumOfQ1 <=8th
Grade], qryHeartSmartForTeens.[SumOfQ1 <=8th Grade] AS [Q1 <=8th
Grade1], qryHSFTageEdu.[SumOfQ1 9th-12th Grade], qryHeartSmartForTeens.
[SumOfQ1 9th-12th Grade] AS [Q1 9th-12th Grade1], qryHSFTageEdu.
[SumOfQ1 Other1], qryHSFTageEdu.[SumOfQ1 No Response1], qryHSFTageEdu.
[SumOfQ2 <=8th Grade], qryHeartSmartForTeens.[SumOfQ2 <=8th Grade] AS
[Q2 <=8th Grade1], qryHSFTageEdu.[SumOfQ2 9th-12th Grade],
qryHeartSmartForTeens.[SumOfQ2 9th-12th Grade] AS [Q2 9th-12th
Grade1], qryHSFTageEdu.[SumOfQ2 Other1], qryHSFTageEdu.[SumOfQ2 No
Response1], qryHSFTageEdu.[SumOfQ3 <=8th Grade], qryHeartSmartForTeens.
[SumOfQ3 <=8th Grade] AS [Q3 <=8th Grade1], qryHSFTageEdu.[SumOfQ3
9th-12th Grade], qryHeartSmartForTeens.[SumOfQ3 9th-12th Grade] AS [Q3
9th-12th Grade1], qryHSFTageEdu.[SumOfQ3 Other], qryHSFTageEdu.
[SumOfQ3 No Response1], qryHSFTageEdu.[SumOfQ4 <=8th Grade],
qryHeartSmartForTeens.[SumOfQ4 <=8th Grade] AS [Q4 <=8th Grade1],
qryHSFTageEdu.[SumOfQ4 9th-12th Grade], qryHeartSmartForTeens.[SumOfQ4
9th-12th Grade] AS [Q4 9th-12th Grade1], qryHSFTageEdu.[SumOfQ4 No
Response1], qryTotalEthnicity.*
FROM qryTotalAge, qryTotalEmploy, qryTotalIncome, qryTotalRace,
qryTotAgeOthNR, qryTotEducOthNR, qryHSFTageEdu, qryTotalEthnicity,
qryTotalEducation, qryHeartSmartForTeens;
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      26th Aug 2010
On Thu, 26 Aug 2010 13:58:37 -0700 (PDT), zufie <(E-Mail Removed)>
wrote:

>Here is my code. When I delete the HSFT data the AllPrograms Report
>those not return any values. That is, this query for which I provide
>the code below returns the values for this report. Thanks, John


Do you have a question, John?

As written your query has *no joins at all*; the WHERE clause (defining the
source of the data) is

FROM qryTotalAge, qryTotalEmploy, qryTotalIncome, qryTotalRace,
qryTotAgeOthNR, qryTotEducOthNR, qryHSFTageEdu, qryTotalEthnicity,
qryTotalEducation, qryHeartSmartForTeens;

This is called a "Cartesian Join"; you have ten queries, each of which might
have multiple records (in principle, I don't know what these queries are).
Access will match *every single record* in each of these queries with *every
single record* in each of the other queries, in all possible combinations; if
you had ten records in each query, you would end up with 10,000,000,000 rows
in the result - certainly NOT what you want.

Do you mean that you're deleting *data* from the HSFT table? or deleting the
HSFT query from this query? or what?

Please don't make the assumption that any of the volunteers here can see your
table structures, know how the tables are related, know what's in qryTotalAge
or anything else: we can only see what you post.
--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also http://www.utteraccess.com
 
Reply With Quote
 
 
 
 
zufie
Guest
Posts: n/a
 
      27th Aug 2010
Yes, I mean that I am deleting *data* from the HSFT table?

Sorry

John



On Aug 26, 4:40*pm, John W. Vinson
<jvinson@STOP_SPAM.WysardOfInfo.com> wrote:
> On Thu, 26 Aug 2010 13:58:37 -0700 (PDT), zufie <john.marru...@illinois.gov>
> wrote:
>
> >Here is my code. When I delete the HSFT data the AllPrograms Report
> >those not return any values. That is, this query for which I provide
> >the code below returns the values for this report. Thanks, John

>
> Do you have a question, John?
>
> As written your query has *no joins at all*; the WHERE clause (defining the
> source of the data) is
>
> FROM qryTotalAge, qryTotalEmploy, qryTotalIncome, qryTotalRace,
> qryTotAgeOthNR, qryTotEducOthNR, qryHSFTageEdu, qryTotalEthnicity,
> qryTotalEducation, qryHeartSmartForTeens;
>
> This is called a "Cartesian Join"; you have ten queries, each of which might
> have multiple records (in principle, I don't know what these queries are)..
> Access will match *every single record* in each of these queries with *every
> single record* in each of the other queries, in all possible combinations; if
> you had ten records in each query, you would end up with 10,000,000,000 rows
> in the result - certainly NOT what you want.
>
> Do you mean that you're deleting *data* from the HSFT table? or deleting the
> HSFT query from this query? or what?
>
> Please don't make the assumption that any of the volunteers here can see your
> table structures, know how the tables are related, know what's in qryTotalAge
> or anything else: we can only see what you post.
> --
>
> * * * * * * *John W. Vinson [MVP]
> *Microsoft's replacements for these newsgroups:
> *http://social.msdn.microsoft.com/For...-US/accessdev/
> *http://social.answers.microsoft.com/.../en-US/addbuz/
> *and see alsohttp://www.utteraccess.com


 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      27th Aug 2010
On Fri, 27 Aug 2010 04:18:16 -0700 (PDT), zufie <(E-Mail Removed)>
wrote:

>Yes, I mean that I am deleting *data* from the HSFT table?
>


Could you please post an explanation of the problem you are encountering and
indicate what help you need?

So far you've said "Report prob" and listed a largish but very incomplete SQL
query. It calls multiple other queries (which you have not posted) referencing
one or more tables (which you have not described).

We're just people here, volunteers donating our time. Nobody here can see your
computer, nor do we know anything you don't post. I'd love to help, but given
what you've posted, there's nothing useful that I can contribute!
--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also http://www.utteraccess.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XP prob maybe registry prob Eric500 Windows XP General 2 25th Jul 2009 12:53 PM
Re: can't access shared files--ZA prob--Update prob? PA Bear [MS MVP] Windows XP General 0 11th Jul 2009 05:33 PM
Thunderbird prob may be a Windows prob Thunderbird Windows XP General 9 11th Jul 2008 11:44 AM
2 Questions: Cursor prob and Monitor prob Purple Shrub Support 1 28th Jan 2007 11:14 PM
Audio prob? AIW prob? pickle ATI Video Cards 4 2nd Nov 2004 05:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 AM.