M
Mellstock
I am running Access 2000 and Windows XP. What I would like to do is to
is display all the records for a given month and year eg March 2008.
At the moment I do it via a parameter query entering a start and
finish date.
I did ask this question some time ago and Ken Snell replied with the
following suggestion,
SELECT * FROM TableName
WHERE Month([DateFieldName]) = [Enter month number:] AND
Year([DateFieldName]) = [Enter year (yyyy):];
When I put this into the criteria I am told I have written a sub query
that can return more than one field without using the EXISTS reserved
word in the FROM clause.
I suspect I am not using this expression correctly. How should I be
using it ? and is this the easiest way of achieving what I need.
Thank you
is display all the records for a given month and year eg March 2008.
At the moment I do it via a parameter query entering a start and
finish date.
I did ask this question some time ago and Ken Snell replied with the
following suggestion,
SELECT * FROM TableName
WHERE Month([DateFieldName]) = [Enter month number:] AND
Year([DateFieldName]) = [Enter year (yyyy):];
When I put this into the criteria I am told I have written a sub query
that can return more than one field without using the EXISTS reserved
word in the FROM clause.
I suspect I am not using this expression correctly. How should I be
using it ? and is this the easiest way of achieving what I need.
Thank you