Query Data Criteria

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I am attempting to create a query that counts, and sums. The query
basically counts the number of occurances, and sums total points. I
am trying to make the query sum total points from the past two years
ONLY based on a "now()" date. The query will NOT execute. Any help
is appreciated.
 
I am attempting to create a query that counts, and sums. The query
basically counts the number of occurances, and sums total points. I
am trying to make the query sum total points from the past two years
ONLY based on a "now()" date. The query will NOT execute. Any help
is appreciated.

Use a criterion of
= DateAdd("yyyy", -2, Date())

on the date field that I presume you have.

Note that we have NO way to even guess what's wrong with your query. Care to
post the SQL view, and indicate in what way it doesn't work?

John W. Vinson [MVP]
 
Use a criterion of


on the date field that I presume you have.

Note that we have NO way to even guess what's wrong with your query. Care to
post the SQL view, and indicate in what way it doesn't work?

John W. Vinson [MVP]

John,

Thanks, that worked perfectly...

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Aggregate Function Error 0
Query Criteria 1
totals for multiple fields 1
Access Dcount (multiple criteria) 3
Expression in query 2
Access Query problem 1
CrossTab Error if data not present 1
Expression in query 2

Back
Top