Results 1 to 6 of 6
  1. #1
    msasan1367 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    60

    create and last modify date & time for record


    how can I add create and last modify date & time to my table

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Question doesn't make sense. Give a better explanation of what you need.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    msasan1367 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    60
    Quote Originally Posted by June7 View Post
    Question doesn't make sense. Give a better explanation of what you need.
    Example:
    table for customers [name, family, mobile, createDate, createTime, modifyDate, modifyTime]

    when I create new customer, automatically fill createDate and createTime records with date and time
    when I modify customer information, automatically fill modifyDate and modifyTime records with date and time

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    You can set DefaultVaue property in table or textbox on form with: Date()
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    msasan1367 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    60
    Quote Originally Posted by June7 View Post
    You can set DefaultVaue property in table or textbox on form with: Date()
    what do I do for modify Date?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Need VBA code.

    How is the program to know that you opened the record to 'modify' and not just to look at? Are you modifying data in name, family, mobile?

    Maybe code in the form BeforeUpdate event?

    Me!modifyDate = Date()

    Why not one field for date/time?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 12-16-2012, 02:48 PM
  2. Replies: 2
    Last Post: 12-14-2012, 04:08 PM
  3. Replies: 3
    Last Post: 12-10-2012, 05:14 PM
  4. How to modify sub report record source
    By EddieN1 in forum Reports
    Replies: 4
    Last Post: 12-12-2011, 06:57 AM
  5. Adding the Date & Time record added
    By jo15765 in forum Access
    Replies: 2
    Last Post: 11-26-2010, 11:31 PM

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