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
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