Dirk and Allan,
Thank you both for your valuable input on this matter.
Whenever "January 2006" is entered into the query, all records included
are
that of January 2006 up to the present date.
So, if I want to look at January 2006 records, the query grabs records
from
January 2006, Feb 2006, March 2006, April 2006, and so on up to the
present
date. As if January 2006 is only a "start month" per say.
How can I eliminate the other monthly records pulled and only display the
exact monthly records queried. For instance, when I query "January 2006",
I
only want to see records in January 2006 and not the forthcoming months.
Please help.
Both of you have been great in this effort.
I only hope I have made my purpose more specific and clearer for a final
solution.
Thanks again,
Marc
Dirk Goldgar said:
Marc said:
Thanks for the immediate reply.
Dirk,
Using your suggestion, when operator types in month "January 2006",
it pulls all records in January 2006 or specified Month, Year to
current date. Is there a way to only pull records for specified
month instead of specified month and those following?
I guess you found and fixed my typo in the original SQL.
Sure, you can combine what I suggested with what Allen suggested:
SELECT * FROM MyTable
WHERE
MyDateField >=
CDate([Enter Month (month year)])
AND
MyDateField <
DateAdd("m", 1, CDate([Enter Month (month year)]);
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)