dbTalk Databases Forums  

Help with an birthday question

comp.databases.filemaker comp.databases.filemaker


Discuss Help with an birthday question in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kevin Warner
 
Posts: n/a

Default Help with an birthday question - 03-12-2010 , 03:28 AM






Hello everyone,

I have a simple database with just two linked tables. One field contains
a date of birth field. I then have a calculated field that determines
the age of the person. What I want to do is list anyone who has a
birthday on the current date. I know how to get the day, month and year
from the date of birth and the current date, but how do I list everyone
whose birthday in on the current day and month?

Any help would be very gratefully received.

Kev

Reply With Quote
  #2  
Old   
Ursus
 
Posts: n/a

Default Re: Help with an birthday question - 03-12-2010 , 04:47 AM






"Kevin Warner" <me (AT) home (DOT) com> schreef in bericht
news:me-9197C2.16285212032010 (AT) news (DOT) iinet.net.au...
Quote:
Hello everyone,

I have a simple database with just two linked tables. One field contains
a date of birth field. I then have a calculated field that determines
the age of the person. What I want to do is list anyone who has a
birthday on the current date. I know how to get the day, month and year
from the date of birth and the current date, but how do I list everyone
whose birthday in on the current day and month?

Any help would be very gratefully received.

Kev
Depending on your needs you can create a FIND

or create a relationship and a portal, showing all related birthdays


--
Keep well / Hou je goed

Ursus

Reply With Quote
  #3  
Old   
GSteven
 
Posts: n/a

Default Re: Help with an birthday question - 03-12-2010 , 07:25 AM



This would make more sense if you provided more info on your table names and
use but to further explain the reply from Ursus;

the find method will be best if you're going to send emails, etc...

(in suedo code)
enter find mode
set field 'birthday' to get(currentdate) <<this is assuming that your
birthday field is a date type>>
perform find

or setting up a portal if you're just displaying the information

you would set your relationship from a gloabl date field (ex- gBirthday) in
your 'control' or 'pref' table to the birthday field in your contacts (?)
table. Setup your portal to view records from the relationship/TO name then
populate the gBirthday field with get(Currentdate)

Hope this helps
Steve


"Ursus" <ursus.kirk (AT) ziggo (DOT) nl> wrote

Quote:
"Kevin Warner" <me (AT) home (DOT) com> schreef in bericht
news:me-9197C2.16285212032010 (AT) news (DOT) iinet.net.au...
Hello everyone,

I have a simple database with just two linked tables. One field contains
a date of birth field. I then have a calculated field that determines
the age of the person. What I want to do is list anyone who has a
birthday on the current date. I know how to get the day, month and year
from the date of birth and the current date, but how do I list everyone
whose birthday in on the current day and month?

Any help would be very gratefully received.

Kev

Depending on your needs you can create a FIND

or create a relationship and a portal, showing all related birthdays


--
Keep well / Hou je goed

Ursus

Reply With Quote
  #4  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Help with an birthday question - 03-12-2010 , 12:52 PM



Kevin Warner <me (AT) home (DOT) com> wrote:

Quote:
Hello everyone,

I have a simple database with just two linked tables. One field contains
a date of birth field. I then have a calculated field that determines
the age of the person. What I want to do is list anyone who has a
birthday on the current date. I know how to get the day, month and year
from the date of birth and the current date, but how do I list everyone
whose birthday in on the current day and month?
You can search a date field for a day and a month in any year by
entering dd/mm/* or mm/dd/* depending on your date format settings. Test
the search, script it if it works.

If (in a scripted search) you use a calc field to extract the day and
month of today's date, make sure it's an _unstored_ calc field. Only un
unstored calc field can use get ( currentdate ) and actually get the
current date. A stored calc will store the creation date of the field be
done with it.

If you want to use a relation you could create a text result calc field
that calculates mmdd from the current date and similar calc field that
does the same with the birth date. The first field must be unstored (see
above), the second needs to be stored to make the relation work.

Now you can relate the two fields to and use GTRR, a portal or the list
function to see who's birthday it is.
--
http://clk.ch

Reply With Quote
  #5  
Old   
Unkown to Xnntp
 
Posts: n/a

Default Re: Help with an birthday question - 03-13-2010 , 11:03 PM



Thanks for the help, it works just the way I wanted!

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.