Displaying birthdays from the birth date

K

K

Hello. I have a brief question, of how do i do some sort of label
which displays what persons in my database were born on this day...
considering that i enter the whole date of their birth in the database.
 
F

fredg

Hello. I have a brief question, of how do i do some sort of label
which displays what persons in my database were born on this day...
considering that i enter the whole date of their birth in the database.

Create a query. Include the person's [NameField] and a new column.

Birthday:Format([DateOfBirth],"mm/dd")

As criteria on this Birthday column, write:
Format(Date(),"mm/dd")

Only records with the current month and day will be returned.
 
K

K

Hello. I have a brief question, of how do i do some sort of label
which displays what persons in my database were born on this day...
considering that i enter the whole date of their birth in the database.

Create a query. Include the person's [NameField] and a new column.

Birthday:Format([DateOfBirth],"mm/dd")

As criteria on this Birthday column, write:
Format(Date(),"mm/dd")

Only records with the current month and day will be returned.

Thank you, it helped a lot.
 

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