Results 1 to 3 of 3

Thread: Count down days

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    400

    Count down days

    Hi

    I have an access database with a field called "Days remaining" now what i need to do is, say if an amount of days gets added to the field for instance
    365 then everyday that amount must decrease by one. is this possible, please can someone help me.

    Many thanks

  2. #2
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Re: Count down days

    If you mean by just using sql Server you could just have a scheduled task that runs once every day and runs an sp that updates all values for that field which are greater than 0 by minus one.
    Last edited by FishGuy; Nov 8th, 2005 at 11:32 AM.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Count down days

    Alternatively you could have a View, which contains the other fields from the table, and this field calculated using SQL.

    This method will slow down access to the data tho.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width