remove year from birthday

F

frankd

I have a short date field, BIRTHDAY, with the input mask of 99/99/00;0, in
table CONTACTS. I would like to remove the year and then sort the birthdays
by month and day via a query to mail merge with MS Word to send out birthday
cards. I am willing to go into the query on a monthly basis asking
specifically for birthdays that month. Your help will be greatly
appreciated.
 
R

Rick B

First, you don't have to modify the query each month, just make the month of
the birthdate equal to the month of the current date (or next month or
whatever)

=Month(date())

To do what you want, format the field...
BirthdateRevised: Format([birthdate],"mm/dd")
 
F

frankd

Rick, WONDERFUL and thank you. May I push for another level? I believe the
greeting would look more professional reading "September 3" as compared to
"09/03." Would you please help me convert it to the month spelled out and
date? Your answer was in a fraction of the time I spent searching in how to
do this.
Respectfully, Frank

Rick B said:
First, you don't have to modify the query each month, just make the month of
the birthdate equal to the month of the current date (or next month or
whatever)

=Month(date())

To do what you want, format the field...
BirthdateRevised: Format([birthdate],"mm/dd")



--
Rick B



frankd said:
I have a short date field, BIRTHDAY, with the input mask of 99/99/00;0, in
table CONTACTS. I would like to remove the year and then sort the birthdays
by month and day via a query to mail merge with MS Word to send out birthday
cards. I am willing to go into the query on a monthly basis asking
specifically for birthdays that month. Your help will be greatly
appreciated.
 
R

Rick B

I believe that would be:

BirthdateRevised: Format([birthdate],"mmmm dd")



--
Rick B



frankd said:
Rick, WONDERFUL and thank you. May I push for another level? I believe the
greeting would look more professional reading "September 3" as compared to
"09/03." Would you please help me convert it to the month spelled out and
date? Your answer was in a fraction of the time I spent searching in how to
do this.
Respectfully, Frank

Rick B said:
First, you don't have to modify the query each month, just make the month of
the birthdate equal to the month of the current date (or next month or
whatever)

=Month(date())

To do what you want, format the field...
BirthdateRevised: Format([birthdate],"mm/dd")



--
Rick B



frankd said:
I have a short date field, BIRTHDAY, with the input mask of 99/99/00;0, in
table CONTACTS. I would like to remove the year and then sort the birthdays
by month and day via a query to mail merge with MS Word to send out birthday
cards. I am willing to go into the query on a monthly basis asking
specifically for birthdays that month. Your help will be greatly
appreciated.
 
F

frankd

MR. Rick B: THANK YOU very much for your time and assistance. Have a
pleasant day; I will now! Frank

Rick B said:
I believe that would be:

BirthdateRevised: Format([birthdate],"mmmm dd")



--
Rick B



frankd said:
Rick, WONDERFUL and thank you. May I push for another level? I believe the
greeting would look more professional reading "September 3" as compared to
"09/03." Would you please help me convert it to the month spelled out and
date? Your answer was in a fraction of the time I spent searching in how to
do this.
Respectfully, Frank

Rick B said:
First, you don't have to modify the query each month, just make the month of
the birthdate equal to the month of the current date (or next month or
whatever)

=Month(date())

To do what you want, format the field...
BirthdateRevised: Format([birthdate],"mm/dd")



--
Rick B



I have a short date field, BIRTHDAY, with the input mask of 99/99/00;0, in
table CONTACTS. I would like to remove the year and then sort the
birthdays
by month and day via a query to mail merge with MS Word to send out
birthday
cards. I am willing to go into the query on a monthly basis asking
specifically for birthdays that month. Your help will be greatly
appreciated.
 
S

Steve Schapel

Or, to be totally precise...
BirthdateRevised: Format([birthdate],"mmmm d")
:)
 
B

Bob''s Wife

So how can I sort my table? I was able to remove the year doing what you
said, but now it will not let me sort the table so I see the birthdays in
chronological order. And the year in the birthday field is what causes them
to sort improperly.

Rick B said:
First, you don't have to modify the query each month, just make the month of
the birthdate equal to the month of the current date (or next month or
whatever)

=Month(date())

To do what you want, format the field...
BirthdateRevised: Format([birthdate],"mm/dd")



--
Rick B



frankd said:
I have a short date field, BIRTHDAY, with the input mask of 99/99/00;0, in
table CONTACTS. I would like to remove the year and then sort the birthdays
by month and day via a query to mail merge with MS Word to send out birthday
cards. I am willing to go into the query on a monthly basis asking
specifically for birthdays that month. Your help will be greatly
appreciated.
 
D

Douglas J. Steele

Did you add the BirthdateRevised field to your query like Rick suggested?
Sort on that field, not the birthdate.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Bob''s Wife said:
So how can I sort my table? I was able to remove the year doing what you
said, but now it will not let me sort the table so I see the birthdays in
chronological order. And the year in the birthday field is what causes
them
to sort improperly.

Rick B said:
First, you don't have to modify the query each month, just make the month
of
the birthdate equal to the month of the current date (or next month or
whatever)

=Month(date())

To do what you want, format the field...
BirthdateRevised: Format([birthdate],"mm/dd")



--
Rick B



frankd said:
I have a short date field, BIRTHDAY, with the input mask of 99/99/00;0,
in
table CONTACTS. I would like to remove the year and then sort the birthdays
by month and day via a query to mail merge with MS Word to send out birthday
cards. I am willing to go into the query on a monthly basis asking
specifically for birthdays that month. Your help will be greatly
appreciated.
 
M

Mary

I added the following to my query:
(In an empty field:) BirthdateRevised: Format([BirthDate],"mm/d")
(Criteria:) Between [Enter start date:] And [Enter end date:]

If I query 10/3 (start date) to 10/5 (end date) then in addition to 10/3,
10/4 and 10/5 it returns all dates starting with 10/3 such as 10/30 and
10/31

If I query 10/1 (start date) to 10/3 (enddate) then in addition to 10/1,
10/2 and 10/3 it returns all dates beginning with 10/1, 10/2, or 10/3 such as
10/1, 10/10, 10/11, 10/12, 10/13... 10/20, 10/21... 10/30, 10/31 etc.

Is there a fix for this?



Douglas J. Steele said:
Did you add the BirthdateRevised field to your query like Rick suggested?
Sort on that field, not the birthdate.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Bob''s Wife said:
So how can I sort my table? I was able to remove the year doing what you
said, but now it will not let me sort the table so I see the birthdays in
chronological order. And the year in the birthday field is what causes
them
to sort improperly.

Rick B said:
First, you don't have to modify the query each month, just make the month
of
the birthdate equal to the month of the current date (or next month or
whatever)

=Month(date())

To do what you want, format the field...
BirthdateRevised: Format([birthdate],"mm/dd")



--
Rick B



I have a short date field, BIRTHDAY, with the input mask of 99/99/00;0,
in
table CONTACTS. I would like to remove the year and then sort the
birthdays
by month and day via a query to mail merge with MS Word to send out
birthday
cards. I am willing to go into the query on a monthly basis asking
specifically for birthdays that month. Your help will be greatly
appreciated.
 
D

Douglas J. Steele

Use Format([BirthDate],"mm/dd"), and use preceding zeroes, so that you enter
10/03 and 10/05, not 10/3 and 10/5.

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Mary said:
I added the following to my query:
(In an empty field:) BirthdateRevised: Format([BirthDate],"mm/d")
(Criteria:) Between [Enter start date:] And [Enter end
date:]

If I query 10/3 (start date) to 10/5 (end date) then in addition to 10/3,
10/4 and 10/5 it returns all dates starting with 10/3 such as 10/30 and
10/31

If I query 10/1 (start date) to 10/3 (enddate) then in addition to 10/1,
10/2 and 10/3 it returns all dates beginning with 10/1, 10/2, or 10/3 such
as
10/1, 10/10, 10/11, 10/12, 10/13... 10/20, 10/21... 10/30, 10/31 etc.

Is there a fix for this?



Douglas J. Steele said:
Did you add the BirthdateRevised field to your query like Rick suggested?
Sort on that field, not the birthdate.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Bob''s Wife said:
So how can I sort my table? I was able to remove the year doing what
you
said, but now it will not let me sort the table so I see the birthdays
in
chronological order. And the year in the birthday field is what causes
them
to sort improperly.

:

First, you don't have to modify the query each month, just make the
month
of
the birthdate equal to the month of the current date (or next month or
whatever)

=Month(date())

To do what you want, format the field...
BirthdateRevised: Format([birthdate],"mm/dd")



--
Rick B



I have a short date field, BIRTHDAY, with the input mask of
99/99/00;0,
in
table CONTACTS. I would like to remove the year and then sort the
birthdays
by month and day via a query to mail merge with MS Word to send out
birthday
cards. I am willing to go into the query on a monthly basis asking
specifically for birthdays that month. Your help will be greatly
appreciated.
 
M

Mary

Worked like a charm. Thank you very much!

Douglas J. Steele said:
Use Format([BirthDate],"mm/dd"), and use preceding zeroes, so that you enter
10/03 and 10/05, not 10/3 and 10/5.

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Mary said:
I added the following to my query:
(In an empty field:) BirthdateRevised: Format([BirthDate],"mm/d")
(Criteria:) Between [Enter start date:] And [Enter end
date:]

If I query 10/3 (start date) to 10/5 (end date) then in addition to 10/3,
10/4 and 10/5 it returns all dates starting with 10/3 such as 10/30 and
10/31

If I query 10/1 (start date) to 10/3 (enddate) then in addition to 10/1,
10/2 and 10/3 it returns all dates beginning with 10/1, 10/2, or 10/3 such
as
10/1, 10/10, 10/11, 10/12, 10/13... 10/20, 10/21... 10/30, 10/31 etc.

Is there a fix for this?



Douglas J. Steele said:
Did you add the BirthdateRevised field to your query like Rick suggested?
Sort on that field, not the birthdate.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


So how can I sort my table? I was able to remove the year doing what
you
said, but now it will not let me sort the table so I see the birthdays
in
chronological order. And the year in the birthday field is what causes
them
to sort improperly.

:

First, you don't have to modify the query each month, just make the
month
of
the birthdate equal to the month of the current date (or next month or
whatever)

=Month(date())

To do what you want, format the field...
BirthdateRevised: Format([birthdate],"mm/dd")



--
Rick B



I have a short date field, BIRTHDAY, with the input mask of
99/99/00;0,
in
table CONTACTS. I would like to remove the year and then sort the
birthdays
by month and day via a query to mail merge with MS Word to send out
birthday
cards. I am willing to go into the query on a monthly basis asking
specifically for birthdays that month. Your help will be greatly
appreciated.
 

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