Results 1 to 3 of 3
  1. #1
    MSG56 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    29

    embededed macro "Date() function" returns 12/30/1899 not system date

    I have a simple embedded macro for a button that I want to use to update a date field to todays date, but everytime I click the button it returns 12/30/1899. I understand that is the date for "0", but I was expecting Date() to return the system date/today's date. My macro looks like this:

    SetValue
    Item = [Last Time Made]


    Expression = [Last Time Made] = Date()

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    Try changing the Expression to simply: 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.

  3. #3
    MSG56 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2014
    Posts
    29
    Thank you! That solved my problem and now that I look at it it seems obvious.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-03-2014, 09:35 AM
  2. Replies: 2
    Last Post: 11-26-2012, 11:12 PM
  3. Replies: 2
    Last Post: 09-29-2012, 11:22 PM
  4. Replies: 4
    Last Post: 03-14-2012, 09:05 AM
  5. Access 2003 Date() Function returns "#Name?"
    By smartel@soprema.ca in forum Programming
    Replies: 5
    Last Post: 01-18-2012, 05:52 AM

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