G
Guest
I can certainly post the SQL of the query but I honestly don't know what that
is..(I am demonstrating my ignorance) Flying by the seat of my pants here.
That dateadd expressionis out of the filter of the report I am attempting to
replace with a query. I am putting it in the "Criteria" of a Date/Time field
in the query..so obviously what worked as a filter in a report filter
expression doesn't necessarily work in a Query.
the purpose is to return those records with current dates 6 months ago
during the current month.
On another aspect, in a search of this site for your idea of an unbound
form to automate the query...I think I found a great example I will attempt
tomorrow on Al Greens Access Tips as recommended by one of your fellow MVPs.
Sure do appreciate your continued assistance..hope I'll be able to help
someone in the same manner sosme day. Thank you.
is..(I am demonstrating my ignorance) Flying by the seat of my pants here.
That dateadd expressionis out of the filter of the report I am attempting to
replace with a query. I am putting it in the "Criteria" of a Date/Time field
in the query..so obviously what worked as a filter in a report filter
expression doesn't necessarily work in a Query.
the purpose is to return those records with current dates 6 months ago
during the current month.
On another aspect, in a search of this site for your idea of an unbound
form to automate the query...I think I found a great example I will attempt
tomorrow on Al Greens Access Tips as recommended by one of your fellow MVPs.
Sure do appreciate your continued assistance..hope I'll be able to help
someone in the same manner sosme day. Thank you.
John Vinson said:Having a difficult time with the query....couldn't get things to work so I
have gone back several times and added one or two fields at a time and then
run the query to isolate what I am doing wrong.
I made a query to combine the director and department info. I am using that
query and a query isolating date field [current test] and the parent table to
create a parameter query based on the director (and it works!!!...first
parameter query).
I then add the following to criteria for the [Current Test]:
Month(DateAdd("m",-6,Date()))
The query which worked fine before returns nothing when that expression is
added. What gives?
<looking under the monitor for the query>
I have no idea, Jeff. Care to post the SQL of the query? What field
are you searching with this value (which will just be an integer
number, 1 to 12)? If it's a date/time field it will certainly NOT
work.
John W. Vinson[MVP]