PC Review


Reply
Thread Tools Rate Thread

Birthday Query

 
 
eskili32@gmail.com
Guest
Posts: n/a
 
      21st Jun 2006
Hi,
I am having a real problem with birthday queries. Just started using
access
a week ago.
I tried to enter a criteria of 12 then december dec*, nothing works.

1. List all your contacts who have birthdays in December or are over 30

years old.
2. All people who you have birthday data sorted by last name.
3. Use Access to provide the SUM of individuals on the list.
4. Group birthdays by month

 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      21st Jun 2006
On 20 Jun 2006 18:08:11 -0700, (E-Mail Removed) wrote:

>Hi,
>I am having a real problem with birthday queries. Just started using
>access
>a week ago.
>I tried to enter a criteria of 12 then december dec*, nothing works.
>
>1. List all your contacts who have birthdays in December or are over 30
>
> years old.
>2. All people who you have birthday data sorted by last name.
>3. Use Access to provide the SUM of individuals on the list.
>4. Group birthdays by month


Posting the exact same message half a dozen times is not necessary or
helpful.

And it sounds like you're posting homework questions. Are you?

A Date/Time value is actually stored as a number - a count of days and
fractions of a day (times) since midnight, December 30, 1899. It's not
a string, so a criterion of 12 would find only people born on January
10, 1900.

Try putting two calculated fields in the query by typing the following
in two vacant Field cells in the query:

BirthMonth: Month([DOB])

assuming that your date of birth field is named DOB. This will contain
values 1 through 12 for the month.

Age: DateDiff("yyyy", [DOB], Date()) - IIF(Format([DOB], "mmdd") >
Format(Date(), "mmdd"), 1, 0)

which will be the person's age as of their last birthday. These
fields will help you answer questions 1, 2 and 4. I have no idea what
you mean by "the SUM of individuals" - people aren't numbers, and
AFAIK cannot be summed up by any silly computer program! <g>

John W. Vinson[MVP]
 
Reply With Quote
 
eskili32@gmail.com
Guest
Posts: n/a
 
      22nd Jun 2006

John Vinson wrote:
> On 20 Jun 2006 18:08:11 -0700, (E-Mail Removed) wrote:
>
> >Hi,
> >I am having a real problem with birthday queries. Just started using
> >access
> >a week ago.
> >I tried to enter a criteria of 12 then december dec*, nothing works.
> >
> >1. List all your contacts who have birthdays in December or are over 30
> >
> > years old.
> >2. All people who you have birthday data sorted by last name.
> >3. Use Access to provide the SUM of individuals on the list.
> >4. Group birthdays by month

>
> Posting the exact same message half a dozen times is not necessary or
> helpful.
>
> And it sounds like you're posting homework questions. Are you?
>
> A Date/Time value is actually stored as a number - a count of days and
> fractions of a day (times) since midnight, December 30, 1899. It's not
> a string, so a criterion of 12 would find only people born on January
> 10, 1900.
>
> Try putting two calculated fields in the query by typing the following
> in two vacant Field cells in the query:
>
> BirthMonth: Month([DOB])
>
> assuming that your date of birth field is named DOB. This will contain
> values 1 through 12 for the month.
>
> Age: DateDiff("yyyy", [DOB], Date()) - IIF(Format([DOB], "mmdd") >
> Format(Date(), "mmdd"), 1, 0)
>
> which will be the person's age as of their last birthday. These
> fields will help you answer questions 1, 2 and 4. I have no idea what
> you mean by "the SUM of individuals" - people aren't numbers, and
> AFAIK cannot be summed up by any silly computer program! <g>
>
> John W. Vinson[MVP]




Thank you very much. This actually was a homework due last week, so I
had to change and force the data so it would work. However I wanted to
know how it is done since I couldn't figure it out how it is done
properly.
Again, thank you.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Birthday Query eskili32@gmail.com Microsoft Access 1 21st Jun 2006 08:22 AM
Birthday Month Query =?Utf-8?B?U2FyYQ==?= Microsoft Access 3 25th Jan 2006 06:02 PM
Birthday Query =?Utf-8?B?S2VsbHk=?= Microsoft Access Queries 2 8th Nov 2005 06:16 PM
Birthday Query Randy Fritz Microsoft Access Form Coding 2 7th Apr 2004 09:27 PM
birthday query Lynn Microsoft Access Queries 3 1st Dec 2003 10:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:08 AM.