win 7 32bit, access 2003
I have two select statements involving Datepart, the first works, the second returns nothing. Advice appreciated
Working select
Non working select
tia Jack
I have two select statements involving Datepart, the first works, the second returns nothing. Advice appreciated
Working select
Code:
SELECT DISTINCT Datepart('yyyy',dtDateEntered) FROM tblFiscalGifts WHERE Datepart('yyyy',dtDateEntered) >= 2001 ORDER BY Datepart('yyyy',dtDateEntered)
Non working select
Code:
INSERT INTO tblTemplatePreviousDonorsj SELECT DISTINCT nHouseholdNumber, nIndividualNumber FROM tblFiscalGifts WHERE Datepart('yyyy',dtDateEntered) IN (2001,2002,2003,2004,2005,2006,2007,2008,2009)
tia Jack