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