Results 1 to 2 of 2
  1. #1
    harpreett.singhh@gmail.co is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    25

    Post Default Value does not change for old records

    Hello,



    I have a column for default value of today's date "Date()". In the next column there is formula for no of days which calculates as

    No. of days = ([Today's Date] - [Audit Date]/7*5 (/7*5 excludes sat and sunday).

    My problem is that default value of date does not change as i open the table everyday. I know why. Coz i introduced the date column after 200 records already entered.

    Now today's date only changes if new record is inserted.

    How to get current today's date everyday automatically ? when we open the database next day !

    Please note that I am using Today's date only for calculating number of day's formula. otherwise no function of this column.

    Regards

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Are you trying to use a formula in a table? There is a data type "Calculated" in newer versions of Access. I try to keep my tables simple and use queries, forms, and reports to do the heavy lifting. I would use VBA to calculate a formula and not store the calculated data in any table.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 12-13-2013, 07:39 AM
  2. Trying to Change Default printer
    By sims.anderson2010 in forum Programming
    Replies: 2
    Last Post: 03-08-2012, 08:07 AM
  3. How to change default view at launch?
    By seawulf in forum Access
    Replies: 3
    Last Post: 09-04-2011, 12:57 PM
  4. Programmatically change default switchboard at startup?
    By romeo_echo in forum Programming
    Replies: 4
    Last Post: 08-05-2011, 11:45 AM
  5. Replies: 7
    Last Post: 03-04-2011, 12:46 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums