G
Galen
I am using ACCESS 2000 on Windows 2000 platform.
This sounds so simple but I can't get it to work.
I have a for named "frmControlPanel"
on this form is a textbox called "txtDate" where the user
eners a date value.
I have a table (tblActivity) of data with 2 fields DATE (a
date field) and ACTIVITY (a text field). There may be
several ACTIVITY records for each DATE value.
What I need a query to do is give me all records with a
date that falls between the date on frmControlPanel-31 and
the date on frmControlPanel-3.
I created a simple query referencing tblACTIVITY. It pulls
in both fields Date and Activity.
Here is what I wrote as a criteria under the DATE field on
my query to select the records I wanted:
When I run the query, I get a message saying that the
query is either incorrect or too complex to be evaluated.
FYI.. I made certain that the form was open and a valid
date was entered. I can even reference the date field in
another query just fine, so I don't think it is a problem
with the form.
I'm stumped!
This sounds so simple but I can't get it to work.
I have a for named "frmControlPanel"
on this form is a textbox called "txtDate" where the user
eners a date value.
I have a table (tblActivity) of data with 2 fields DATE (a
date field) and ACTIVITY (a text field). There may be
several ACTIVITY records for each DATE value.
What I need a query to do is give me all records with a
date that falls between the date on frmControlPanel-31 and
the date on frmControlPanel-3.
I created a simple query referencing tblACTIVITY. It pulls
in both fields Date and Activity.
Here is what I wrote as a criteria under the DATE field on
my query to select the records I wanted:
[frmControlPanel].[txtDate]-3=[forms]![frmControlPanel].[txtDate]-31 and <=[forms]!
When I run the query, I get a message saying that the
query is either incorrect or too complex to be evaluated.
FYI.. I made certain that the form was open and a valid
date was entered. I can even reference the date field in
another query just fine, so I don't think it is a problem
with the form.
I'm stumped!