K
kateri4482
What is wrong with this query?
SELECT TblDailyCodes.Code, TblDailyCodes.Classroom, TblDailyCodes.Date,
DateValue([Date]) AS NewDate
FROM TblDailyCodes
WHERE (((TblDailyCodes.Date) Is Not Null) AND
((TblDailyCodes.NewDate)=Date()));
I get no records - even though I know there are some there. If I remove the
AND part of the query I get records but I only want those records whose
[NewDate] is today. Thanks for your help.
SELECT TblDailyCodes.Code, TblDailyCodes.Classroom, TblDailyCodes.Date,
DateValue([Date]) AS NewDate
FROM TblDailyCodes
WHERE (((TblDailyCodes.Date) Is Not Null) AND
((TblDailyCodes.NewDate)=Date()));
I get no records - even though I know there are some there. If I remove the
AND part of the query I get records but I only want those records whose
[NewDate] is today. Thanks for your help.