Query criteria

C

Chris

I fear this is a dumb question, so apologies in advance. For the life of me,
I can't get anything to work.

I need to figure out a simple formula for a criteria to drive a query. I
have two seperate date fields (C_Month and C_Year). Month is shown as 01,
02, etc and Year is 4 digit year. Both are text fields...

The criteria I need is to select ONLY the current month/year based on when
the query is run - so for today, i'd only want Aug 09 records.

Thanks in advance for any help...
 
K

KARL DEWEY

You should use a REAL DateTime field and display it as needed.
Your fields -- C_Month C_Year
Criteria -- Format(Date(),"m") Format(Date(),"yyyy")
 
C

CraigH

Format(Format(Date(),"m"),"00") for Karl's example for month since you need
01 for January
 

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

Top