Access 2007 and Dates

F

Fev

Hi
I am using a parameter query combined with Dateformat to list upcoming
birthdays. I have used this technique in previous versions of Access
97 - 2003, without a problem. However in Access 2007 I keep getting
inconsistent results. Here are my parameter queries and results:
Between [Enter Start Day Number] And [Enter EndDay Number]
Field Expression: DatePart("d",[DateOfBirth])

[Enter Month as a number eg 03 for March]
Field Expression: DatePart("m",[DateOfBirth])

When I enter the following: Day nos 1 and 9 and month 1 I get:
Birthday
01 January
07 January

However when I enter the following: Day nos 1 and 10 and month 1 I
get:
Birthday
01 January

I do not get 07 Jan birthday. It appears to be affected by leading
0's.
Can anyone help me with an explanation?
Thanks
Heather
 

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