Welcome to SPN

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

Sign Up Now!

Automatic entry of mondays date every week in table

Discussion in 'Information Technology' started by Middlemix, Nov 19, 2005.

  1. Middlemix

    Middlemix
    Expand Collapse
    Guest

    Hi, please be gentle as this is my first post.

    I have DATES-TABLE with fields FROM DATE and TO DATE, every Monday the user
    goes in and puts The Mondays date in the from field and Sundays date in the
    TO DATE field. Is there a simple solution in that every monday morning those
    2 dates are automaticaly updated?

    Thanks
     
  2. Loading...

    Similar Threads Forum Date
    My last entry Blogs Oct 16, 2015
    UK 80-year-old Sikh Pensioner Kicked, Punched & Spit Upon by Woman in Coventry UK Breaking News Aug 17, 2013
    India ‘No one should be denied entry in gurdwaras’ Breaking News Jun 14, 2012
    UK Sikh Cricket Fan Denied Entry in Lord's Breaking News Jul 26, 2011
    SciTech Facebook May 'block content' Claim as Speculation Grows over Entry into China Breaking News May 4, 2011

  3. RuralGuy

    RuralGuy
    Expand Collapse
    Guest

    If it helps here's code to create the Monday and Sunday date for the week with
    the current Date()

    Me.txtSundayDate = Date() + (7 - DatePart("w", Date(), 2, 1))
    Me.txtMondayDate = DateAdd("d", -6, Me.txtSundayDate)

    On Sat, 19 Nov 2005 02:38:05 -0800, Middlemix
    <Middlemix@discussions.microsoft.com> wrote:

    >Hi, please be gentle as this is my first post.
    >
    >I have DATES-TABLE with fields FROM DATE and TO DATE, every Monday the user
    >goes in and puts The Mondays date in the from field and Sundays date in the
    >TO DATE field. Is there a simple solution in that every monday morning those
    >2 dates are automaticaly updated?
    >
    >Thanks

    _______________________________________________
    hth - RuralGuy (RG for short)
    Please post to the NewsGroup so all may benefit.
     

Share This Page