Dear Microsoft Gurus,
I am teaching myself Microsoft Access 2007. So, please forgive me if this question is very naive.
I tried the following two queries that I expected to give the same answer (pull out the rows with both [Amount Paid] and [Current Due] set to zero). The first of these two queries worked as expected. The second query Asks me for [Total Amount] instead of calculating it.
Does this mean that calculated fields cannot be used in an SQL query in the "Where" part of the SQL statement, or am I simply doing it wrong in Query 2?
Query 1 (works as expected):
SELECT [Client Number], [Client Name], [Amount Paid], [Current Due], [Amount Paid] + [Current Due] AS [Total Amount]
FROM Client_table
Where ([Amount Paid] =0) AND ( [Current Due] = 0 )
;
Query 2 ( Asks me for [Total Amount] instead of calculating it)
SELECT [Client Number], [Client Name], [Amount Paid], [Current Due], [Amount Paid] + [Current Due] AS [Total Amount]
FROM Client_table
Where [Total Amount]= 0
;
Bookmarks