Date Criteria

G

Guest

I need help setting a date criteria. I have all the employee start dates in
a date/time col. EXP. (08/25/2001). I need to sort by month.

EXP. All employees who started in the month of January, regardless of the
year. I can only make it sort with a year included or specific date.

Please HELP!
 
G

Guest

Hi, Stacy.

Use the DatePart function to return the month, e.g., for August:

DatePart("m",[TestDate])=8

Sprinks
 
G

Guest

Thanks
I copied that formula and a box pops up with Test Date and a blank. What do
I put in there?

Sprinks said:
Hi, Stacy.

Use the DatePart function to return the month, e.g., for August:

DatePart("m",[TestDate])=8

Sprinks


Stacy said:
I need help setting a date criteria. I have all the employee start dates in
a date/time col. EXP. (08/25/2001). I need to sort by month.

EXP. All employees who started in the month of January, regardless of the
year. I can only make it sort with a year included or specific date.

Please HELP!
 
G

Guest

Sorry, Stacy. I cut and pasted my expression from my database and forgot to
change it. Change "TestDate" to the name of your date field. Do not include
the quotes, but include the brackets.

Hope that helps.

Sprinks


Stacy said:
Thanks
I copied that formula and a box pops up with Test Date and a blank. What do
I put in there?

Sprinks said:
Hi, Stacy.

Use the DatePart function to return the month, e.g., for August:

DatePart("m",[TestDate])=8

Sprinks


Stacy said:
I need help setting a date criteria. I have all the employee start dates in
a date/time col. EXP. (08/25/2001). I need to sort by month.

EXP. All employees who started in the month of January, regardless of the
year. I can only make it sort with a year included or specific date.

Please HELP!
 

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


Top