PC Review


Reply
Thread Tools Rate Thread

build a calendar

 
 
accessuser1308
Guest
Posts: n/a
 
      31st Dec 2009
I recently built a database that houses my genealogy back 13 generations. I
have a table that contains all personal info and a table that contains
"events" (birth, death, etc). The event table is linked to the personal
table via a whoID. I would like to build a calendar like feature in my
database. I would like it to look like a calendar. I do not want my
calendar restrained by year. I would like the calendar to display a month,
say January, and display the name, event, and year for each person that may
have an occurence on any given day. For example, if Jim, Jane and John were
all born January 1 I would like to see them all listed in the "box" for
January 1. All three would include their year of birth. Any suggestions on
how to build this form/report would be greatly appreciated.

Thank you
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      31st Dec 2009
Create a query.

Type an expression like this into a fresh column in the Field row:
TheMonth: Month([EventDate])
substituting your field name for EventDate.

In the next column:
TheDay: Day([EventDate])
This query will allow you to group events by month and day, regardless of
the year.

If you want to create a calendar-like report, you will need to generate a
record for every date in the year. You can't use your table of events for
this, as there's no guarantee that you will have an event for each day of
the year, so you will need a table with a Number field, and 366 records (the
numbers 0 to 365.) If you called this field CountID, you can then create a
query and generate a record for every date by typing this expression into
the Field row:
DateSerial(Year(Date()),1,1) + [CountID]

When you get to the report, Duane Hookom has some example of how to do
calendar reports here:
http://www.access.hookom.net/Samples.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"accessuser1308" <(E-Mail Removed)> wrote in message
news:32A7B79B-A980-41E9-A441-(E-Mail Removed)...
> I recently built a database that houses my genealogy back 13 generations.
> I
> have a table that contains all personal info and a table that contains
> "events" (birth, death, etc). The event table is linked to the personal
> table via a whoID. I would like to build a calendar like feature in my
> database. I would like it to look like a calendar. I do not want my
> calendar restrained by year. I would like the calendar to display a
> month,
> say January, and display the name, event, and year for each person that
> may
> have an occurence on any given day. For example, if Jim, Jane and John
> were
> all born January 1 I would like to see them all listed in the "box" for
> January 1. All three would include their year of birth. Any suggestions
> on
> how to build this form/report would be greatly appreciated.
>
> 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
Can I build a calendar from a query? =?Utf-8?B?RXJpa2EgTS4=?= Microsoft Access 3 20th Oct 2007 03:46 PM
Build a calendar except weekends =?Utf-8?B?TWFyeQ==?= Microsoft Excel Misc 5 7th Mar 2007 09:35 PM
The Next Build Shall be RTM guys not any other builds unless MS decides to do one more build because of bugs before RTM RC2 build 5477 is the last build before RTM Drew Windows Vista General Discussion 8 13th Oct 2006 12:41 AM
I meant RC2 Build 5744 is the last build unless ms find more bugs before the RTM build and gold version there only make another build if there more bugs and not ready for RTM Drew Windows Vista General Discussion 4 12th Oct 2006 02:17 PM
How can I build a 23''x11.5'' open calendar template? =?Utf-8?B?QmlsbG55ZWd1eQ==?= Microsoft Excel Misc 0 8th Oct 2004 06:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:22 PM.