G
Guest
My query in SQL looks like the following:
(right now the query makes sure it has a certain qualifier when it pulls
data from tblJournal & I would like to add that same qualifier for the data
it pulls from tblRent using the where clause.
this is what my SQLstatement looks like:
SELECT Sum(Journal.Amount) AS SumOfAmount,
Sum([Journal.Amount]+[Rent.Amount]) AS RentIncome
FROM Rent INNER JOIN Journal ON Rent.Tenant = Journal.Name
WHERE (((Journal.Type)="4") AND ((Journal.LocationID)=1) AND ((Journal.Date)
Between [Enter YTD beginning date] And [Enter ending date]));
As of now it makes sure it pulls the [Amount] field out of [tblJournal]
only if [LOCID] = 1 in the record in [tblJournal]. I want to add the same
qualifier for the [Amount] it
pulls from the [tblRent].
Any help would be greatly appreciated so I can apply the same principles to
other queries. Thanks
(right now the query makes sure it has a certain qualifier when it pulls
data from tblJournal & I would like to add that same qualifier for the data
it pulls from tblRent using the where clause.
this is what my SQLstatement looks like:
SELECT Sum(Journal.Amount) AS SumOfAmount,
Sum([Journal.Amount]+[Rent.Amount]) AS RentIncome
FROM Rent INNER JOIN Journal ON Rent.Tenant = Journal.Name
WHERE (((Journal.Type)="4") AND ((Journal.LocationID)=1) AND ((Journal.Date)
Between [Enter YTD beginning date] And [Enter ending date]));
As of now it makes sure it pulls the [Amount] field out of [tblJournal]
only if [LOCID] = 1 in the record in [tblJournal]. I want to add the same
qualifier for the [Amount] it
pulls from the [tblRent].
Any help would be greatly appreciated so I can apply the same principles to
other queries. Thanks