cheyenne2002
Instructor
I have the following code behind my query and I keep getting a strange error.
====code====
SELECT tLots.PropertyNo, tLots.SubDivision, tLots.County, tLots.ST, tLots.PID, tLots.LegDesc, tLots.[Market$], tTaxPaid.TaxPaid, tTaxPaid.TaxDue, tTaxPaid.TaxYear, Sum([tTaxPaid]![TaxPaid]) AS TotalTax
FROM tLots INNER JOIN tTaxPaid ON tLots.PropertyNo = tTaxPaid.PropertyNo
WHERE (((tTaxPaid.TaxDue)=Yes) AND ((tTaxPaid.TaxYear)=[Enter Tax Year]));
---Error----
You tried to execute a query that does not include the specified expression 'ProperyNo' as part of an aggregate function.
----
Can anyone explain what the error is trying to tell me. I do have the PropertyNo as part of the query.
PS: I created the query using Access and not directly with SQL as I am really shakey with SQL coding.
Sami
====code====
SELECT tLots.PropertyNo, tLots.SubDivision, tLots.County, tLots.ST, tLots.PID, tLots.LegDesc, tLots.[Market$], tTaxPaid.TaxPaid, tTaxPaid.TaxDue, tTaxPaid.TaxYear, Sum([tTaxPaid]![TaxPaid]) AS TotalTax
FROM tLots INNER JOIN tTaxPaid ON tLots.PropertyNo = tTaxPaid.PropertyNo
WHERE (((tTaxPaid.TaxDue)=Yes) AND ((tTaxPaid.TaxYear)=[Enter Tax Year]));
---Error----
You tried to execute a query that does not include the specified expression 'ProperyNo' as part of an aggregate function.
----
Can anyone explain what the error is trying to tell me. I do have the PropertyNo as part of the query.
PS: I created the query using Access and not directly with SQL as I am really shakey with SQL coding.
Sami