I have data in table called tblIncome with the fields as follows:
[AccountNumIn] as Text example "610910"
[Incometype] as Text example "EBCY"
[DateEnd] as Text in mm/dd/yyyy format for example Jan 1, 2013 = "01/01/2013", 02/01/2013" etc.
[Quarter] as text with a lookup table with 4 choices "1st Quarter", "2nd Quarter" etc.
The query
Code:
SELECT tblIncome.AccountNumIn, tblIncome.IncomeType, tblIncome.DateStart, tblIncome.DateEnd, tblIncome.CEFAmt, tblIncome.Quarter
FROM tblIncome
WHERE (((tblIncome.AccountNumIn)="610910") AND ((tblIncome.IncomeType)="EBCY") AND (Year(DateValue([dateend]))="2013"));
works but I can't exclude the data in the field [Quarter] when it contains "1st Quarter,2nd Quarter,3rd Quarter,4th Quarter" strings. When I used the following Query
Code:
SELECT tblIncome.AccountNumIn, tblIncome.IncomeType, tblIncome.DateStart, tblIncome.DateEnd, tblIncome.CEFAmt, tblIncome.Quarter
FROM tblIncome
WHERE (((tblIncome.AccountNumIn)="610910") AND ((tblIncome.IncomeType)="EBCY") AND ((tblIncome.Quarter)=IsNull([Quarter])) AND ((Year(DateValue([dateend])))="2013"));
the result is zero records when their should be 12 from [dateEnd] = 01/01/2013 to 12/31/2013.
Any guesses as to how I can exclude the [Quarter] records while retaining the other records?