Dates need to be delimited with # characters.
Try
#2/7/2007#
Hopefully you realize that regardless of what your regional settings may
be,
thats 7 Feb, 2007.
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
Hello Arvin,
thanks for that. I didn't think it would be so simple. I have included
a
field for "datecreate" and I want to include those queries beyond a
certain
date. I have put in the criteria:
2/7/2007
but I still get every date prior.
:
1) Is it possible to allow users to create their own ad-hoc queries
through
a form?
The Access Web Search Wizard is one way of doing it:
http://www.mvps.org/access/modules/mdl0056.htm
You can also look for "BuildCriteria" in Access VBA help for methods
of
using that method to build ad-hoc queries.
2) Is it possible to list (and update) all current queries in a
combo
box?
SELECT Name
FROM MsysObjects
WHERE (((Left$([Name],1))<>"~") AND ((Type)=5))
ORDER BY Name;
The tilde (~) is the starting character that Access uses to internally
save
temporary queries when it compiles Select statements. The Select
statement
above tells the query to ignore any temporary queries.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com