Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $95

3 Conditional formats

Discussion in 'Information Technology' started by lmv, Jul 28, 2006.

  1. lmv

    lmv
    Expand Collapse
    Guest

    Target Date is
    my control source
    =DateAdd("m",-2,[Forms]![frmProjects]![BuildDate])

    I need some help I can't figure out the field value less than, between or
    ??...
    what I am trying to do is:

    when I am within 30 days or less of the builddate turn yellow
    DateAdd("d",-30,Forms!frmProjects!BuildDate)

    within 14 days or less I want to turn maroon
    DateAdd("d",-14,Forms!frmProjects!BuildDate)

    But if the target date is earlier than calculated date from the build date
    it has expired red

    Can someone help me I keep trying different combinations but the -# is
    making me crazy.
    Thanks
     
  2. Loading...

    Similar Threads Forum Date
    Inspirational Unconditional love for the Guru Videos Sep 4, 2010
    General Unconditional Love Hard Talk Jun 28, 2008
    Pure and Unconditional Love for God Gurmat Vichaar Feb 18, 2008

  3. Wayne Morgan

    Wayne Morgan
    Expand Collapse
    Guest

    Just to verify with the way you've worded this. "when I am within 30 days or
    less of the builddate", if you mean the date in the textbox, it will never
    be. It will be 2 months from the BuildDate, that is what you're Control
    Source is calculating. If you mean today's date, then this can be done.

    Set the drop down to Expression Is. Next, in the box to the right of the
    drop down enter:

    Date()>=DateAdd("d",-30,Forms!frmProjects!BuildDate) And
    Date()<DateAdd("d",-14,Forms!frmProjects!BuildDate)

    and select Yellow, be aware Yellow may be hard to see.

    For the next one,

    Date()>=DateAdd("d",-14,Forms!frmProjects!BuildDate)

    and choose maroon.

    Now, for the last one, "But if the target date is earlier than calculated
    date from the build date it has expired red", I don't understand. You said
    the "target date" was "=DateAdd("m",-2,[Forms]![frmProjects]![BuildDate])".
    There is nothing here that will allow it to ever be other than 2 months
    before the BuildDate. Please explain further.

    --
    Wayne Morgan
    MS Access MVP


    "lmv" <lmv@discussions.microsoft.com> wrote in message
    news:4E800286-3876-4E88-BB40-03DF1C5D2977@microsoft.com...
    > Target Date is
    > my control source
    > =DateAdd("m",-2,[Forms]![frmProjects]![BuildDate])
    >
    > I need some help I can't figure out the field value less than, between or
    > ??...
    > what I am trying to do is:
    >
    > when I am within 30 days or less of the builddate turn yellow
    > DateAdd("d",-30,Forms!frmProjects!BuildDate)
    >
    > within 14 days or less I want to turn maroon
    > DateAdd("d",-14,Forms!frmProjects!BuildDate)
    >
    > But if the target date is earlier than calculated date from the build date
    > it has expired red
    >
    > Can someone help me I keep trying different combinations but the -# is
    > making me crazy.
    > Thanks
     
  4. lmv

    lmv
    Expand Collapse
    Guest

    Thanks... Your response helps me to see where I was going wrong. I get it now!


    "Wayne Morgan" wrote:

    > Just to verify with the way you've worded this. "when I am within 30 days or
    > less of the builddate", if you mean the date in the textbox, it will never
    > be. It will be 2 months from the BuildDate, that is what you're Control
    > Source is calculating. If you mean today's date, then this can be done.
    >
    > Set the drop down to Expression Is. Next, in the box to the right of the
    > drop down enter:
    >
    > Date()>=DateAdd("d",-30,Forms!frmProjects!BuildDate) And
    > Date()<DateAdd("d",-14,Forms!frmProjects!BuildDate)
    >
    > and select Yellow, be aware Yellow may be hard to see.
    >
    > For the next one,
    >
    > Date()>=DateAdd("d",-14,Forms!frmProjects!BuildDate)
    >
    > and choose maroon.
    >
    > Now, for the last one, "But if the target date is earlier than calculated
    > date from the build date it has expired red", I don't understand. You said
    > the "target date" was "=DateAdd("m",-2,[Forms]![frmProjects]![BuildDate])".
    > There is nothing here that will allow it to ever be other than 2 months
    > before the BuildDate. Please explain further.
    >
    > --
    > Wayne Morgan
    > MS Access MVP
    >
    >
    > "lmv" <lmv@discussions.microsoft.com> wrote in message
    > news:4E800286-3876-4E88-BB40-03DF1C5D2977@microsoft.com...
    > > Target Date is
    > > my control source
    > > =DateAdd("m",-2,[Forms]![frmProjects]![BuildDate])
    > >
    > > I need some help I can't figure out the field value less than, between or
    > > ??...
    > > what I am trying to do is:
    > >
    > > when I am within 30 days or less of the builddate turn yellow
    > > DateAdd("d",-30,Forms!frmProjects!BuildDate)
    > >
    > > within 14 days or less I want to turn maroon
    > > DateAdd("d",-14,Forms!frmProjects!BuildDate)
    > >
    > > But if the target date is earlier than calculated date from the build date
    > > it has expired red
    > >
    > > Can someone help me I keep trying different combinations but the -# is
    > > making me crazy.
    > > Thanks

    >
    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page