PC Review


Reply
Thread Tools Rate Thread

alternating days

 
 
coconut78
Guest
Posts: n/a
 
      27th Dec 2009
Howdy,

I have an access program for a home daycare. I use this program to log when
each child is dropped off/picked up. I would like to include a menu option
as well.

What I want is to alternate between 15 menus for each day any child is
present. For example, today is menu #3, and tomorrow... if there are any
kids... menu #4. If there aren't any kids... I want to wait for menu# 4 for
tomorrow. The thing that makes this tough is that there is no certain kid
that is here every single day we're open.

I have one table that logs the children (Childname, time in, time out,
date), and I have another table with the 15 menus. (1,2,3,4,etc..)

Anybody have any ideas?
 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      27th Dec 2009
Hard to say without knowing a lot more about your table structure.

You can test the current date and see if any record exists for that date.

This expression would test the current date obviously it could be modified to
test for any date. If it returns zero then no child is logged in for today's
date.

DCount("*","[Log Attendance Table]","ChildLoggedINDate >=Date() and
ChildLoggedInDate < Date()+1)

If you want to do this for many dates at once and dynamically update the
result it would be possible but tricky.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

coconut78 wrote:
> Howdy,
>
> I have an access program for a home daycare. I use this program to log when
> each child is dropped off/picked up. I would like to include a menu option
> as well.
>
> What I want is to alternate between 15 menus for each day any child is
> present. For example, today is menu #3, and tomorrow... if there are any
> kids... menu #4. If there aren't any kids... I want to wait for menu# 4 for
> tomorrow. The thing that makes this tough is that there is no certain kid
> that is here every single day we're open.
>
> I have one table that logs the children (Childname, time in, time out,
> date), and I have another table with the 15 menus. (1,2,3,4,etc..)
>
> Anybody have any ideas?

 
Reply With Quote
 
P. v. Putten
Guest
Posts: n/a
 
      27th Dec 2009

"coconut78" <(E-Mail Removed)> schreef in bericht
news:C454BFEC-9456-4051-91D9-(E-Mail Removed)...
> Howdy,
>
> I have an access program for a home daycare. I use this program to log
> when
> each child is dropped off/picked up. I would like to include a menu
> option
> as well.
>
> What I want is to alternate between 15 menus for each day any child is
> present. For example, today is menu #3, and tomorrow... if there are any
> kids... menu #4. If there aren't any kids... I want to wait for menu# 4
> for
> tomorrow. The thing that makes this tough is that there is no certain kid
> that is here every single day we're open.
>
> I have one table that logs the children (Childname, time in, time out,
> date), and I have another table with the 15 menus. (1,2,3,4,etc..)
>
> Anybody have any ideas?


 
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
Need to pull <=14 Days, <=30 Days, >30 Days from a date column Ken Microsoft Excel Misc 3 23rd Oct 2009 12:53 AM
Highlight Alternating Days Dan Microsoft Excel Misc 2 21st Oct 2008 08:44 AM
Shading alternating rows for easy visibilty - won't stay alternating when filtering djmiller777 Microsoft Excel Misc 2 9th Jan 2004 09:48 PM
Re: Alternating Formulas Dan E Microsoft Excel Worksheet Functions 1 15th Aug 2003 07:20 PM
Alternating Format Number11 Windows XP General 1 13th Aug 2003 12:08 PM


Features
 

Advertising
 

Newsgroups
 


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